Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
beepbox-lite
Advanced tools
Note: This package was originally called
beepbox
, but I've renamed it asbeepbox-lite
to give access to the rightful owner of Beepbox!
A simple library for playing beepbox songs. This library is a more polished version of what I made for my 2018 JS13kGames entry!
This is an open source project under the MIT license, see LICENSE.md for additional information.
import Audio from 'beepbox';
import song from './song.json';
const player = new Audio(song);
/**
* Play the loaded clip once.
*
* @returns {Object}
* The generic node from Audio.generateNode() for this sequence.
*/
player.play();
/**
* Play the loaded clip infinitely.
*
* @returns {Object}
* The generic node from Audio.generateNode() for this sequence.
*/
player.loop();
/**
* Play a single note with the given params.
*
* @param {Number} freq
* The note frequency to play.
* @param {Number} len
* The duration to play the note (seconds).
* @param {Number} off
* The time offset to play the note (seconds).
* @param {String} type
* The OscillatorNode type to use; https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type
* @param {Number} gain
* The gain (volume) to play the note at (0.0 - 1.0).
*
* @returns {Object}
* The generic node from Audio.generateNode() for this sequence.
*/
player.note(freq, len, off, type, gain);
'use strict';
import Audio from 'beepbox';
import song from './song.json';
const player = new Audio(song);
player.play();
FAQs
A simple beepbox player!
We found that beepbox-lite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.