1.0.1 • Published 6 years ago
n-downloader v1.0.1
n-downloader
download file
Install
npm install n-downloaderUsage
const url = 'http://pic37.nipic.com/20140113/8800276_184927469000_2.png';
download(url, 'dist');API
download(url, destination, options)
- url
string: URL to download. - destination
string: File path or dirname where your file will be saved. - options
Object- logger
Object- logLevel
number: Default is 3
- logLevel
- request
Object- Same options as
got.
- Same options as
- logger
License
MIT