Get the current song played on magic.co.nz
Simplest way to install nexgen-magic
is to use npm.
Just run npm install nexgen-magic
which will download nexgen-magic
and all it's dependencies.
Simply require nexgen-magic
in your code
var magic = require('nexgen-magic');
magic.current(function(track) {
console.log('Currently playing ' + track.title + ' by ' + track.artist);
});
magic.next(function(track) {
console.log('Next song will be ' + track.title + ' by ' + track.artist);
});