New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

echonestjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

echonestjs

Echonest api client

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

echonestjs

wercker status

Simple node.js client for querying the echonest api.

Installation

  npm install echonestjs --save

Usage

The echonestjs module exposes a singleton object, which you can initialize once with the api key, which is handy to use with application frameworks such as express.

  var Echonest = require('echonestjs');

  Echonest.init('YOUR ECHONEST API KEY');

  Echonest.get('echonest/endpoint', {'the necessary parameters'}, callback);

e.g.

  var Echonest = require('echonestjs');

  Echonest.init('123456789');

  Echonest.get('song/search', { artist: "led zeppelin" }, function (err, res) {
      if (err) {
        console.log(err);
      } else {
        console.log(res);
      }
  });

Tests

To run the tests simply execute:

    npm test

The tests have a dependency of a configuration file config/config.js of the following structure:

/**
 * Module configuration.
 *
 * Contains the echonest api key for the tests.
 *
 * config/config.js
 */
module.exports = {
    api_key: 'PLACE YOUR ECHONEST API KEY HERE'
};

Dependencies

request

Keywords

echonest

FAQs

Package last updated on 25 Apr 2015

Did you know?

Socket

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.

Install

Related posts