Nodeschool Public Materials
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fetch-file

1.0.1 • Public • Published

Fetch File

Download from an http server to a local file.

Build Status Dependency Status

Installation

$ npm install fetch-file

API

fetch(remote, local, [options,] cb)

Download from remote to local.

remote is an options object to be passed to request. This includes uri, qs, method, headers etc...

local is the path to a local file. Its directory will be created using mkdirp if it does not already exist.

Options:

  • mode The mode to create files with (default: 0666)

License

BSD

Keywords

none

install

npm i fetch-file

Downloadsweekly downloads

155

version

1.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar