@vimlet/commons-request

0.0.7 • Public • Published

Request

Request manager.

Installation

npm install @vimlet/commons-request

It will be also installed as a module within @vimlet/commons

Usage

request.download(url, dest, options, doneHandler)

Downloads a file.

  • url: The URL source to download.
  • dest: he place where the downloaded file will be stored.
  • options:
  1. downloadHandler: A progress callback function(received, total, statusCode).
  2. outputHandler: Default output callback function(out), redirects stdout when provided.
  • doneHandler: Default done callback function(error, status).

License

This project is under MIT License. See LICENSE for details.

Readme

Keywords

Package Sidebar

Install

npm i @vimlet/commons-request

Weekly Downloads

9

Version

0.0.7

License

MIT

Unpacked Size

4.76 kB

Total Files

3

Last publish

Collaborators

  • devsvimlet
  • lethevimlet