a1-beep

2.0.1 • Public • Published

a1-beep

Upgrading to V2: the package is a dual cjs-esm so no update should be required.

Play a beep sound on the computer.

Why

Beep is usually a \u07 character printed to console. Unfortunately, on modern computers beeping is disabled.

Usage

Pre-requisite: Make sure that the aplay command is installed (aplay is already installed by default in Ubuntu and other distros).

Then, simply write:

const { beep } = require('a1-beep')
beep() //normal beep

Complex beeps, like songs, can also be played. Whitespace means 200ms of silence

beep('. . ... .... ..')

Notes:

beep() returns inmediately (and not async function) because there is no need for waiting beep to finish.

Readme

Keywords

Package Sidebar

Install

npm i a1-beep

Weekly Downloads

6

Version

2.0.1

License

MIT

Unpacked Size

39.9 kB

Total Files

11

Last publish

Collaborators

  • ax1