Skip to content

Instantly share code, notes, and snippets.

@zoetrope69
Last active July 21, 2017 11:19
Show Gist options
  • Save zoetrope69/3565f428279dead3739d0725fbb1b813 to your computer and use it in GitHub Desktop.
Save zoetrope69/3565f428279dead3739d0725fbb1b813 to your computer and use it in GitHub Desktop.
last.fm stream example
const { LastFmNode } = require('lastfm');
const lastfm = new LastFmNode({});
lastfm.stream('zaccolley').on('nowPlaying', track => {
console.log(track);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment