Simple file downloader
rekip is a simple method to download and save file. No more, no less.
Install the module with:
npm install rekip
Include it in your scripts with:
rekip = require( "rekip" );
The rekip module exposes a function :
rekip( url, destination, callback )
urlis the URL (
String) designing the file to download.
destinationis the path (
String) designing where to put the downloaded file.
function, called after the download is complete or whenever an error occurs. The callback function take only one argument which is the
nullif no error appens).
var rekip = ;;
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2014 Leny
Licensed under the MIT license.