@cjser/beeper
v3.0.0-cjser.2
Published
Make your terminal beep
Maintainers
Readme
beeper
Make your terminal beep

Useful as an attention grabber. For example, when an error happens.
Install
$ npm install beeperUsage
import beeper from 'beeper';
await beeper();
// beep one time
await beeper(3);
// beep three times
await beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beepAPI
It will not beep if stdout is not TTY or if the user supplies the --no-beep flag.
beeper(count?)
beeper(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.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/beeper
