
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
node-bandcamp
Advanced tools
node.js (unofficial) Bandcamp API.
npm install --save node-bandcampvar bandcamp = require('node-bandcamp')Specific tracks can be searched for using the trackSearch method. This function takes the following parameters:
query (str): The search query for which you want results.limit (defaults to 20): The maximum number of results you want returned. Defaults to 20.The function will recursively query Bandcamp until results are exhausted or the limit is hit.
var bandcamp = require('node-bandcamp');
bandcamp.trackSearch('tibetan pop stars', 30).then(function(results){
// do something with search results
}).catch(function(err) {
// handle error
});
Returns a promise, which will eventually resolve as an array of search results. Results are in the format:
[
{
"title": "title",
"album": "album name",
"artist": "artist name",
"image": "URL to track artwork",
"url": "URL to be passed to getTrack method"
},
...
]
A specific track can be streamed using the getTrack method. This function takes just one parameter, the Bandcamp URL string retrieved using the previously discussed trackSearch method.
var bandcamp = require('node-bandcamp');
bandcamp.getTrack('http://hopalong.bandcamp.com/track/tibetan-pop-stars').then(function(stream) {
// pipe audio stream to res, etc.
}).catch(function(err) {
// handle error
});
Returns a promise, which will eventually resolve as an audio stream.
The details for a specific track (title, duration, etc.) can be retrieved using the getDetails method. This function takes the Bandcamp URL string for the track as a parameter, and returns a promise which will eventually resolve as an object in the same format as search results:
{
"title": "title",
"album": "album name",
"artist": "artist name",
"image": "URL to track artwork",
"url": "URL to be passed to getTrack method"
}
All tests for this package are within the __tests__/ directory. If you wish to run the tests:
git clone git@github.com:jakemmarsh/node-bandcamp.gitcd node-bandcampnpm installnpm testFAQs
An (unofficial) node.js API for Bandcamp.
The npm package node-bandcamp receives a total of 14 weekly downloads. As such, node-bandcamp popularity was classified as not popular.
We found that node-bandcamp 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.