
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@phamleduy04/erela.js-spotify
Advanced tools
This a plugin for Erela.JS to allow the use of Spotify URL's, it uses direct URL's being tracks, albums, and playlists and gets the YouTube equivalent.
It is recommended to read the documentation to start, and the guides to use the plugin.
NPM :
npm install erela.js-spotify
Yarn :
yarn add erela.js-spotify
The Spotify client ID.
This is required to use this plugin.
The Spotify client secret.
This is required to use this plugin.
The amount of pages to load when a playlist is searched with each page having 100 tracks.
By default this retrieves all tracks in the playlist.
Note: This must be 1 or higher, 0 will load all.
The amount of pages to load when an album is searched with each page having 50 tracks.
By default this retrieves all tracks on the album.
Note: This must be 1 or higher, 0 will load all.
Converts all UnresolvedTracks into a Track.
NOTE: THIS IS NOT RECOMMENDED AS IT WILL ATTEMPT TO CONVERT EVERY TRACK, INCLUDING ALBUMS AND PLAYLISTS TRACKS.
DEPENDING ON THE AMOUNT THIS WILL TAKE A WHILE AND MAY RATELIMIT YOUR LAVALINK NODE.
const { Manager } = require("erela.js");
const Spotify = require("erela.js-spotify");
const clientID = "example ID"; // clientID from your Spotify app
const clientSecret = "example secret"; // clientSecret from your Spotify app
const manager = new Manager({
plugins: [
// Initiate the plugin and pass the two required options.
new Spotify({
clientID,
clientSecret
})
]
});
manager.search("https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC");
FAQs
Spotify plugin for Erela.JS
We found that @phamleduy04/erela.js-spotify 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.