Package Exports
- beeper
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (beeper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
beeper 
Make your terminal beep
Useful as an attention grabber. For example, when an error happens.
Install
$ npm install beeper
Usage
const beeper = require('beeper');
(async => {
await beeper();
// beep one time
await beeper(3);
// beep three times
await beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beep
})();
API
It will not beep if stdout is not TTY or if the user supplies the --no-beep
flag.
beeper([count|melody])
Returns a Promise<void>
that is resolved after the melody has ended.
count
Type: number
Default: 1
How many times you want it to beep.
melody
Type: string
Construct your own melody by supplying a string of *
for beep -
for pause.
License
MIT © Sindre Sorhus