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