UNPKG

nexgen-thesound

Version:

Get the current song played on thesound.co.nz

18 lines (14 loc) 378 B
var Nexgen = require('nexgen'); module.exports = { nexgen: Nexgen('http://www.thesound.co.nz/Portals/0/Inbound/NowPlaying/NowPlaying.aspx'), current: function (cb) { this.nexgen.current(function (track) { cb(track); }) }, next: function (cb) { this.nexgen.next(function (track) { cb(track); }) } };