mp3skull
Search and stream music from mp3skull.
Installation
$ npm install mp3skull
Example
var fs = require('fs'),
mp3skull = require('mp3skull');
mp3skull('the beatles hello goodbye', function (err, tracks) {
tracks[0].song.pipe(fs.createWriteStream('hello goodbye.mp3'));
});
API
track
{
track: String,
direct: String,
song: ReadableStream,
duration: Number?,
bitrate: Number?,
size: Number?
}
Note that the fields marked with ? suffixed may be undefined for certain tracks.
mp3skull(terms, [options], done)
Search MP3 tracks on mp3skull.
terms is expected to be a string of terms to search for.
options is an optional object that's passed into the needle requests.
done returns an array of tracks.
License
MIT