Make your terminal beep
Useful as an attention grabber. For example, when an error happens.
$ npm install beeper
import beeper from 'beeper'; await beeper(); // beep one time await beeper(3); // beep three times await beeper('****-*-*'); // beep, beep, beep, beep, pause, beep, pause, beep
It will not beep if stdout is not TTY or if the user supplies the
Promise<void> that is resolved after the melody has ended.
How many times you want it to beep.
Construct your own melody by supplying a string of
* for beep
- for pause.