Socket
Book a DemoInstallSign in
Socket

fetch-file

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-file

Download from an http server to a local file.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
31
-6.06%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 27 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts