my-wget
Installation
npm install --save my-wget
Usage
download(url, [options], cb);
option
:
dest
(string): destination of the downloaded file.ext
(boolean): extract filestrip
(integer): how many path segments to strip from the root when extracting
var download = ; var url = 'path to file';
Or just omit the option, so it will download it into the current directory
Created with
Yeoman and Generator-simple-package
License
MIT © NghiaTTran