@xch/beepbeep

1.3.0 • Public • Published

beepbeep travis npm downloads javascript style guide

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.

Package Sidebar

Install

npm i @xch/beepbeep

Weekly Downloads

4

Version

1.3.0

License

none

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • xch