3.0.0 • Published 3 years ago

beeper v3.0.0

Weekly downloads
961,539
License
MIT
Repository
github
Last release
3 years ago

beeper

Make your terminal beep

npm.io

Useful as an attention grabber. For example, when an error happens.

Install

$ npm install beeper

Usage

import beeper from 'beeper';

await beeper();
// beep one time

await beeper(3);
// beep three times

await 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?)

beeper(melody?)

Returns a Promise<void> that is resolved after the melody has ended.

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.

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

5 years ago

1.1.1

7 years ago

1.1.0

9 years ago

1.0.0

9 years ago