Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
music-toolbox
Advanced tools
Welcome to the Music Toolbox! 🎶 This simple Node.js package allows you to interact with the music API provided by Rosssio.dev. With it, you can search for songs, check cache information, and retrieve cached songs — all with easy-to-use methods!
To use the music-toolbox
, you need to have Node.js installed. Once you do, you can install the package via npm:
npm install music-toolbox
Here are the available methods and how to use them:
search(query)
Search for a song by name or artist.
const musicToolbox = require('music-toolbox');
musicToolbox.search('Bohemian Rhapsody').then(data => {
console.log(data); // Song details
});
ttl(query)
Check how much time is left on a cached song.
musicToolbox.ttl('Bohemian Rhapsody').then(ttl => {
console.log(ttl); // Time left on the cached song
});
cache()
Get the full list of cached songs.
musicToolbox.cache().then(cachedSongs => {
console.log(cachedSongs); // List of cached songs
});
For more details on the API, check out the official API documentation.
axios
: For making HTTP requestsFAQs
A module to fetch Spotify song data, provided by Rosssio.dev
We found that music-toolbox 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.