Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
normalize an object/array where some values might be boxed within a promise
JavaScript
tag: 0.2.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.npmignore
License
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

when-all

create a promise for the completion of an array of promises

Getting Started

With component

$ component install jkroso/when-all

With npm

$ npm install --save https://github.com/jkroso/when-all/archive/master.tar.gz

then in your app:

var all = require('when-all')

API

all()

Create a promise for an array

all([
  getPage('google.com'),
  getPage('google.co.nz')
]).then(compare)

Running the tests

$ npm install
$ make

Then open your browser to the ./test directory.

Note: these commands don't work on windows.

License

MIT

Something went wrong with that request. Please try again.