deezer-node-api

0.3.0 • Public • Published

Deezer API wrapper

NPM version Build pass Coverage Status

This is Nodejs wrapper for the Deezer API that return promises.

Installation

npm install deezer-node-api --save

Usage example

var Deezer = require('deezer-node-api');
var dz = new Deezer();
 
// Get info for the given album id
dz.getAlbum(302127).then(function(album) {
    console.log(album);
});
 
// Find all the tracks that match the query 'eminem'
dz.findTracks('eminem').then(function(result) {
    console.log(result);
});
 
// Find all the tracks from the album 'good things'
dz.findTracks({album: 'good things'}).then(function(result) {
    console.log(result);
});

Available methods

  • getAlbum(albumId)
  • getArtist(artistId)
  • findTracks(options, index, order)
  • findAlbums(query, index)
  • findArtists(query, index)

Testing

npm test

Readme

Keywords

Package Sidebar

Install

npm i deezer-node-api

Weekly Downloads

10

Version

0.3.0

License

MIT

Unpacked Size

13.9 kB

Total Files

7

Last publish

Collaborators

  • acostes