1.0.1 • Published 5 years ago

n-downloader v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

n-downloader

download file

Install

npm install n-downloader

Usage

const url = 'http://pic37.nipic.com/20140113/8800276_184927469000_2.png';

download(url, 'dist');

More examples...

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
    • request Object
      • Same options as got.

License

MIT