@xch/beepbeep
v1.3.0
Published
Make a console beep noise in Node.js
Downloads
5
Readme
beepbeep
Make a console beep sound. Well-tested, web-scale, cloud-based, restful node.js module.
Usage
var beep = require('@xch/beepbeep')
beep()
// Beep!
beep(2)
// Beep! Beep!
beep(3, 1000)
// Beep! ... Beep! ... Beep!
beep([1000, 500, 2000])
// 1 second delay...Beep! 0.5 second delay...Beep! 2 second delay...Beep!
beep([1000, 500, 2000])
// Beeps will queue up nicely. These will happen after the previous beeps are done.
var beep2 = beep.createBeeper();
beep2([1000, 500, 2000])
// A new beeper will allow beeps to happen in parallel. These beeps will interleave the previous ones.
Note that a beep takes up some time and the specified intervals are only between the start of beeps.
Installation
npm install @xch/beepbeep
License
MIT. Copyright (c) (original author) Feross Aboukhadijeh, (maintainer) Xingchen Hong.