1.0.0 • Published 10 years ago

lastfm-history v1.0.0

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

node-lastfm-history

Provides an EventEmitter interface to gaining Last.fm scrobble history.

Installation

npm install lastfm-history

Example

ver getHistory = require('lastfm-history');s
var worker = getHistory('bencevans', 'b2093e04f3b01c29f6d01d7b9109579f');

worker.on('page', function(tracks, meta) {
  console.log(tracks.length + ' scrobbles just pulled');
  console.log('meta:', meta);
  // store into database or file etc.
});

worker.on('complete', function() {
  console.log('complete');
  // start processing knowing you've got the whole dataset
});

worker.on('error', function(err) {
  console.log('err:', err);
});
1.0.0

10 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago