Detalhes do pacote

beep-browser

xdaniel12MIT1.0.2

An utility to play sounds on the browser

beep, ding, console, log

readme (leia-me)

Beeper-browser

Usage

import beep from "beep-browser";

Just call:

beep()

You can specify a pitch, default is A4 (440 Hz)

beep(880)

A delay is the second argument, useful if you want multiple pitches, if you want perfectly chain them, use 200ms

beep(440)
beep(880, 200)

You can finally specify the time, here's one second: beep(440, 0, 1000)