Node.js Curl Downloader
Download any file without blocking your server using the power of curl.
forked from node-CurlDownloader and rewrited in coffee-script.
Download and install
Install through NPM
npm install curl-download
OR
- Download download.js or download.coffee
- Include in project
Example usage in coffee
# import download Download = require 'download' # new download instance dl = 'http://code.jquery.com/jquery-1.11.0.min.js' 'tmp/jquery-1.11.0.min.js' # when progress dlon 'progress' consolelog "%" return # when end dlon 'end' # when success if code == 0 consolelog "finished successfully" # when fail else consolelog "finished unsuccessfully" processexitcode return # start download dlstart
Example usage in javascript
var Download dl; Download = ; dl = 'http://code.jquery.com/jquery-1.11.0.min.js' 'tmp/jquery-1.11.0.min.js'; dl; dl; dlstart;