You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
613cdcaf0b
Adding element rendered the editor; otherwise editor wouldn't render for me. |
9 years ago | |
---|---|---|
.. | ||
index.js | 9 years ago | |
license | 9 years ago | |
package.json | 9 years ago | |
readme.md | 9 years ago |
readme.md
beeper
Make your terminal beep
Useful as an attention grabber e.g. when an error happens.
Install
$ npm install --save beeper
Usage
var beeper = require('beeper');
beeper();
// beep one time
beeper(3);
// beep three times
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], [callback])
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