node-url-downloader
Download file from url by node.js.
Install
npm install --save node-url-downloader
If you want to use with command line, you need to install like below:
npm install -g node-url-downloader
Need node.js version 6.0 or later. If you install with
-g
,you may need to have root permission(sudo
).
Usage
const Downloader = ;const url = 'https://nodejs.org/dist/v6.11.0/node-v6.11.0.pkg';const download = ;download;download;
on command line client:
downloader url outDir example:downloader https://nodejs.org/dist/v6.11.0/node-v6.11.0.pkg ./downloads
LICENSE
MIT