0.0.2 • Published 3 years ago

node-url-downloader-mod v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

node-url-downloader

NPM version Build status Test coverage Downloads

Download file from url by node.js.

Install

npm install --save node-url-downloader-mod

If you want to use with command line, you need to install like below:

npm install -g node-url-downloader-mod

Need node.js version 6.0 or later. If you install with -g,you may need to have root permission(sudo).

Usage

const Downloader = require('node-url-downloader-mod');
const url = 'https://nodejs.org/dist/v6.11.0/node-v6.11.0.pkg';
const download = new Downloader();
download.get(url, "dir", "name");
download.on('done', (dst) => {
  // download is finished
});

on command line client:

downloader [url] [outDir] [pathName] - required

example:
downloader https://nodejs.org/dist/v6.11.0/node-v6.11.0.pkg ./downloads

LICENSE

MIT

0.0.2

3 years ago

0.0.1

3 years ago