Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    native-or-bluebirdpublic

    This package has been deprecated

    Author message:

    'native-or-bluebird' is deprecated. Please use 'any-promise' instead.

    native-or-bluebird

    NPM version Build status Test coverage Dependency Status License Downloads Gittip

    Use either bluebird or the native Promise implementation. If no implementation is found, an error will be thrown:

    var Promise = require('native-or-bluebird');

    The goal of this library is to be able to eventually remove this line from your code and use native Promises, allowing you to to write future-compatible code with ease. You should install bluebird in your libraries for maximum compatibility.

    If you do not want an error to be thrown, require() the Promise implementation directly. If no implementation is found, undefined will be returned.

    var Promise = require('native-or-bluebird/promise');
    if (Promise) // do stuff with promises

    install

    npm i native-or-bluebird

    Downloadsweekly downloads

    46,531

    version

    1.2.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar