Socket
Socket
Sign inDemoInstall

fetch-bluebird

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fetch-bluebird

patch polyfilled and native fetch to return bluebird promises


Version published
Weekly downloads
42
increased by320%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

fetch-bluebird

This module will patch fetch (both native and polyfill) to use bluebird so you can use helper methods from bluebird like

var propsPickedFromResult = fetch(someapi).call('json').then(_).call('pick', ['propA', 'propB']).call('value');

It will patch fetch-polyfill for you automatically.

It will also bring you fetch-polyfill@* and bluebird@^2 as peerDependencies, currently if we set peerDependencies in package.json we can't suppress the warning like 'npm WARN peerDependencies The peer dependency bluebird@^2 included from fetch-bluebird will no' but it's totally ok in this module and you can safely ignore it. If you don't like see the warning I'm planing publish a 2.0 live the dependencies problems to yourself.

installation

npm i --save fetch-bluebird

usage

require('fetch-bluebird'); and then browserify it.

license

MIT

Keywords

FAQs

Last updated on 17 May 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc