promise-spread

`spread()` for native ES6 Promises

Usage no npm install needed!

<script type="module">
  import promiseSpread from 'https://cdn.skypack.dev/promise-spread';
</script>

README

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.