Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bluebird-q

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluebird-q

Drop-in replacement for Q v1 that delegates to bluebird

  • 2.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
188
increased by26.17%
Maintainers
2
Weekly downloads
 
Created
Source

Build Status

###Introduction

This is a drop-in replacement for Q version 1.x that delegates to bluebird 3.4.6. Enjoy better stack traces, performance and memory usage without changing your existing legacy code.

Installation:

npm install bluebird-q

Usage:

var Q = require("bluebird-q");

###API Additionaly to Q APIs following methods are availible on Q object:

  • Q.getBluebirdPromise(): Returns native bluebird Promise

###Testing

Clone this repository and then run npm install && npm test in the cloned directory root.

###Caveats

  • dispatch, progress and Q.makePromise are unimplemented
  • Currently relies on Object.defineProperty so cannot be used in browsers that don't support ES5
  • Performance of Q-specific methods is not yet optimized e.g.
    • nfapply
    • nfcall
    • nfbind
    • npost
    • nsend
    • ninvoke
    • nbind
    • nmcall
    • fapply
    • fcall
    • fbind
    • denodeify
    • nmapply
    • mapply
    • post
    • send
    • mcall
    • invoke
    • ....
  • However bluebird-specific methods that don't collide with Q names are still available e.g. Q.promisifyAll
  • A few original tests had to be modified in spec/q-spec.js, you can find these tests by searching for "Test modified"

Keywords

FAQs

Package last updated on 29 Sep 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc