šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

node-wget-promise

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-wget-promise

wget in Node, with Promise support

0.1.6
latest
Source
npm
Version published
Maintainers
1
Created
Source

node-wget-promise

node-wget-promise simplifies retrieving files from any URL, with Promise support.

npm Build Status styled with prettier

This package is forked and enhanced from wget-improved

Installation

npm install node-wget-promise --save

Usage

The simpliest example

const wget = require('node-wget-promise');

wget('http://nodejs.org/images/logo.svg');

The basic example with callbacks

const wget = require('node-wget-promise');

wget([url], {
    onStart: [Callback],
    onProgress: [Callback],
    output: [outputFilePath]
  })
  .then(metadata => [fileMetadata])
  .catch(err => [Error]);

Work with async-await syntax

const wget = require('node-wget-promise');

(async () => {
  await wget([url]);
  console.log('Done');
})();

Keywords

download

FAQs

Package last updated on 30 Jun 2018

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