GT2/GT2-iOS/node_modules/beeper
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
index.js correct tree err 2018-02-12 17:26:06 +00:00
license correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
readme.md correct tree err 2018-02-12 17:26:06 +00:00

readme.md

beeper Build Status

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