my-wget
v1.1.0
Published
A file downloader and decompresser
Downloads
4
Readme
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 = require('my-wget');
var url = 'path to file';
download(url, {dest: 'path to destination', ext: false}, function (err, res) {
// do something
})
Or just omit the option, so it will download it into the current directory
download(url, function (err, res) {
// do something
})
Created with
Yeoman and Generator-simple-package
License
MIT © NghiaTTran