Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
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 530,276 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.