SkillAgentSearch skills...

Beeper

Make your terminal beep

Install / Use

/learn @sindresorhus/Beeper
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

beeper

Make your terminal beep

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.

Notes

On systems where the beep sound duration exceeds 500ms (like macOS with certain alert sounds), beeps in melodies may overlap. This is a limitation of the ASCII bell character which provides no duration control.

View on GitHub
GitHub Stars136
CategoryDevelopment
Updated4d ago
Forks10

Languages

JavaScript

Security Score

95/100

Audited on Mar 27, 2026

No findings