0.1.0 • Published 5 years ago

lastfm-api-client v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

lastfm-api-client

a Last.FM API Client for Node and the Browser

Support

Buy me a Coffee

Features

  • support for all available GET methods
  • promises
  • works in node and browser

How to install

npm install lastfm-api-client

API usage

const LastFmApi = require('lastfm-api-client');
const LastFmClient = new LastFmApi({
    apiKey   : '<-- your last.fm api key -->',
    apiSecret: '<-- your last.fm api secret -->'
});

LastFmClient.track.getInfo({
    artist: 'Queens of the Stone Age',
    track : 'No One Knows'
}).then((response) => {
    console.log(response);
})