0.1.1 • Published 8 years ago

justo-plugin-download v0.1.1

Weekly downloads
8
License
-
Repository
github
Last release
8 years ago

NPM version Build Status Dependency Status devDependency Status

Plugin to download files.

Proudly made with ♥ in Valencia, Spain, EU.

Install

npm install justo-plugin-download

Use

To download:

download(opts, config)

The config properties:

  • src (string). The URL.
  • dst (string). Destination dir.

Example:

const download = require("justo-plugin-download");

download("Download MongoDB", {
  src: "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-3.2.4-signed.msi",
  dst: "C:\Users\me\Downloads\"
});

The downloaded file will be C:\Users\me\Downloads\mongodb-win32-x86_64-3.2.4-signed.msi.