Node's Perpetuum Mobile

    promise-spread

    0.1.0 • Public • Published

    promise-spread Travis Coverage Status Downloads

    spread() for native ES6 Promises

    Install

    Install with npm

    $ npm i promise-spread --save

    Usage

    with native-or-bluebird

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

    with any-promise

    var Promise = require('any-promise');
    require('promise-spread')(Promise);

    with native Promises

    require('promise-spread');

    Alternatives to using spread()

    ES6 introduces destructuring and the rest/spread operator, which eliminate the need for spread outright. (Kris Kowal)

    .then(([a, b, c]) => {});

    Running tests

    Install dev dependencies:

    $ npm i -d && npm test

    Contributing

    Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

    Author

    Andreas Pizsa

    Based on code by Benjamin Gruenbaum's answer on StackOverflow

    License

    Copyright © 2016 Andreas Pizsa Released under the MIT license.


    This file was generated by verb-cli on February 04, 2016.

    Install

    npm i promise-spread

    DownloadsWeekly Downloads

    30

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • andreaspizsa