nexgen-morefm
Version:
Get the current song played on morefm.co.nz
32 lines (22 loc) • 649 B
Markdown
# nexgen-morefm
Get the current song played on morefm.co.nz
## Installation
Simplest way to install `nexgen-morefm` is to use [npm](https://npmjs.com).
Just run `npm install nexgen-morefm` which will download `nexgen-morefm` and all it's dependencies.
## Usage
Simply require `nexgen-morefm` in your code
```
var moreFM = require('nexgen-morefm');
```
##### Current Song/Track
```
moreFM.current(function(track) {
console.log('Currently playing ' + track.title + ' by ' + track.artist);
});
```
##### Next Song/Track
```
moreFM.next(function(track) {
console.log('Next song will be ' + track.title + ' by ' + track.artist);
});
```