pf

promisify-fetch

The library is a wrapper for 'fetch' in promising way. It it commonly used for downloading files or get http content from the remote

Showing:

Popularity

Downloads/wk

0

Maintenance

No Maintenance Data Available

Package

Dependencies

2

Size (min+gzip)

177.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

promisify-fetch

The library is a wrapper for 'fetch' in promising way. It it commonly used for downloading files or get http content from the remote.

Usage

var fetch = require('promisify-fetch');

fetch
  .fetchURL('http://google.com')
  .then(function(body) {
    console.log(body);
  })
  .catch(function(e) {
    console.log(e);
  })

API

This is a primising wrapper for 'fetch' package. more specific options, please refer to fetch

/**
 * fetch url content from remote
 * @param  {string} url      url
 * @param  {object} options  Please refer to https://www.npmjs.com/package/fetch
 * @return {promise}         promise
 */

fetchURL(url[,options])

Inspired by fetch

Good Library Companions

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial