Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
The 'beeper' npm package allows you to make your terminal beep. It can be useful for alerting users to certain events or conditions in a command-line application.
Single Beep
This feature allows you to make a single beep sound in the terminal. The code sample demonstrates how to import the 'beeper' package and call it to produce a beep.
const beeper = require('beeper');
beeper();
Multiple Beeps
This feature allows you to make multiple beep sounds in the terminal. The code sample demonstrates how to import the 'beeper' package and call it with a number to produce that many beeps.
const beeper = require('beeper');
beeper(3);
Custom Beep Patterns
This feature allows you to create custom beep patterns using a string of asterisks and hyphens. The code sample demonstrates how to import the 'beeper' package and call it with a string pattern to produce a custom sequence of beeps.
const beeper = require('beeper');
beeper('****-*-*');
The 'node-notifier' package allows you to send cross-platform notifications from your Node.js applications. While it is more focused on visual notifications, it can also produce sound alerts, making it a more versatile but complex alternative to 'beeper'.
The 'cli-alerts' package provides a way to display different types of alerts (info, success, warning, error) in the terminal. It includes sound alerts as part of its functionality, offering a more comprehensive alerting system compared to 'beeper'.
Make your terminal beep
Useful as an attention grabber. For example, when an error happens.
$ npm install beeper
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
It will not beep if stdout is not TTY or if the user supplies the --no-beep
flag.
Returns a Promise<void>
that is resolved after the melody has ended.
Type: number
Default: 1
How many times you want it to beep.
Type: string
Construct your own melody by supplying a string of *
for beep -
for pause.
FAQs
Make your terminal beep
The npm package beeper receives a total of 498,706 weekly downloads. As such, beeper popularity was classified as popular.
We found that beeper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.