Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 7 yıl önce | |
---|---|---|
.. | ||
index.js | 7 yıl önce | |
license | 7 yıl önce | |
package.json | 7 yıl önce | |
readme.md | 7 yıl önce |
Make your terminal beep
Useful as an attention grabber e.g. when an error happens.
$ npm install --save beeper
var beeper = require('beeper');
beeper();
// beep one time
beeper(3);
// beep three times
beeper('****-*-*');
// beep, beep, beep, beep, pause, beep, pause, beep
It will not beep if stdout is not TTY or if the user supplies the --no-beep
flag.
Type: number
Default: 1
How many times you want it to beep.
Type: string
Construct your own melody by supplying a string of *
for beep -
for pause.
MIT © Sindre Sorhus