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.
@suchipi/spotify-player
Advanced tools
This is a JavaScript API that drives Spotify in a Chrome window.
This is a JavaScript API that drives Spotify in a Chrome window.
You need to have Chrome installed. And it can't run headless, so on Linux, you need an x window server. You can use xvfb if you don't have a graphics card or are in a container.
You need the following environment variable(s) set:
CHROME_PATH="path to your chrome executable"
Then:
const spotify = require("@suchipi/spotify-player");
// You have to login first
spotify.login(username, password);
// Then you can search for something and play the first result
spotify.searchAndPlay("c418");
// Or, you can play an album or playlist URL directly
spotify.playURL("https://open.spotify.com/playlist/1L3GAiiBL5sBNbDEAMGMEA");
// These functions click the corresponding buttons at the bottom of the screen:
spotify.play();
spotify.pause();
spotify.previous();
spotify.next();
// To start radio for the currently-playing song:
spotify.startRadio();
// To get info about the currently-playing song:
const infoString = await spotify.nowPlayingInfo();
Given a .env
file in the current working directory with the following environment variables defined:
SPOTIFY_USERNAME="your spotify username or email"
SPOTIFY_PASSWORD="your spotify password"
CHROME_PATH="path to your chrome executable"
You can run node -r @suchipi/spotify-player/repl -e ''
to load a sample song and open a repl where you can test other commands.
MIT
FAQs
This is a JavaScript API that drives Spotify in a Chrome window.
We found that @suchipi/spotify-player 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
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.