soundcloudr
An express soundcloud downloader module
Prerequisites
Installation
In your project root do:
npm install soundcloudr --production --save
Reference
setClientId(clientId)
Sets the Soundcloud client id for the session.
getStreamUrl(url, callback)
Given a valid Soundcloud track url, this will give the direct stream url for that track.
download(url, res, callback)
Given a valid Soundcloud track url, this will download the direct stream url and pipe it to the Express response object causing a download of the track to happen in the browser.
Usage
Without Express
var soundcloudr = ;var fs = ; soundcloudr; soundcloudr;
With Express
var express = ;var app = ;var soundcloudr = ;var fs = ; soundcloudr; app;
Disclaimer
This library should not be used to infringe copyright, only download music that is free to download or is licensed in such a way that downloading will not infringe copyright.
License
Licensed under the MIT license