beeper

WebJar for beeper

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

beeper
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

beeper
WebJar for beeper
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/beeper

Download beeper

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/beeper/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>beeper</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/beeper/
implementation 'org.webjars.npm:beeper:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/beeper/
implementation ("org.webjars.npm:beeper:1.1.1")
'org.webjars.npm:beeper:jar:1.1.1'
<dependency org="org.webjars.npm" name="beeper" rev="1.1.1">
  <artifact name="beeper" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='beeper', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "beeper" % "1.1.1"
[org.webjars.npm/beeper "1.1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

beeper

Make your terminal beep

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

Install

$ npm install beeper

Usage

const beeper = require('beeper');

(async => {
	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.

Versions

Version
1.1.1
1.1.0