0.1.6 • Published 6 years ago

node-wget-promise v0.1.6

Weekly downloads
1,461
License
MIT
Repository
github
Last release
6 years ago

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');
})();
0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago