rain-util-download

0.4.8 • Public • Published

rain-util-download

Build Status npm npm

Generator based, co/koa compatible file(s) downloader

npm i -S rain-util-download
const download = require('rain-util-download');

cosnt img = {
    url: url of file you wish to download,
    src: tentative filename on local system
}

const downloadedImagePath = yield download({
    url: 'https://www.npmjs.com/static/images/npm-logo.svg',
    src: (path.resolve('./npm-logo.svg'))
 })

also works when supplied an array

credits

Package Sidebar

Install

npm i rain-util-download

Weekly Downloads

1

Version

0.4.8

License

MIT

Last publish

Collaborators

  • maxmill