Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
a client library for searching songs within EchoNest and retrieving the nearest match
Simple Echonest search library that provides song search and best match retrieval from the Echonest API
npm install echonester
In your code, require the echonester
module as follows.
var echonester = require('echonester');
var client = echonester();
client.search('foo fighters', 'breakout', function (err, result) {
// work with results here...
});
https://developer.echonest.com/api/v4/song/search
)10000
)var echonester = require('echonester');
var client = echonester({
apikey : 'YOUR KEY HERE',
searchResultLimit : 10,
searchUrl : 'https://developer.echonest.com/api/v4/song/search',
timeout : 10000
});
Find the single best match for a search:
client.findBestMatch(artist, title, callback)
var client = (require('echonester')());
client.findBestMatch('beck', 'loser', function (err, result) {
if (err) {
console.error(err);
}
console.log(result);
});
Which returns the following response:
{ artist_id: 'ARC2XR11187FB5CC95',
id: 'SOGKSOJ14373B756E5',
artist_name: 'Beck',
title: 'Loser' }
Find all matches for a search:
client.search(options, artist, title, callback)
Please note, the options
parameter is optional and can be omitted
var
client = (require('echonester')()),
options = {
limit : 10,
start : 0
};
client.search(options, 'beck', 'loser', function (err, result) {
if (err) {
console.error(err);
}
console.log(result);
});
Which returns the following response:
[ { artist_id: 'ARC2XR11187FB5CC95',
id: 'SOGKSOJ14373B756E5',
artist_name: 'Beck',
title: 'Loser' },
{ artist_id: 'ARC2XR11187FB5CC95',
id: 'SOFWZUR12AF729EC33',
artist_name: 'Beck',
title: 'Loser' },
{ artist_id: 'ARC2XR11187FB5CC95',
id: 'SOQXVQS12B0B8076CA',
artist_name: 'Beck',
title: '06 - Loser' },
{ artist_id: 'ARC2XR11187FB5CC95',
id: 'SOLHXQF137395C36F0',
artist_name: 'Beck',
title: 'LOSER (Outro Fade)/(CONTENT!)' },
{ artist_id: 'ARC2XR11187FB5CC95',
id: 'SOWZWBR13D52FA4048',
artist_name: 'Beck',
title: 'Loser [Fatboy Slim Remix]' } ]
FAQs
a client library for searching songs within EchoNest and retrieving the nearest match
The npm package echonester receives a total of 6 weekly downloads. As such, echonester popularity was classified as not popular.
We found that echonester 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.