Skip to content

Commit

Permalink
Merge pull request #49 from Medium/nick-readme
Browse files Browse the repository at this point in the history
bump package and readme
  • Loading branch information
nicks committed May 14, 2015
2 parents f619e95 + 4945ced commit dccef8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,19 @@ Q.nfcall(fs.writeFile, '/tmp/myFile', 'content')
})
```

### `.spread()` for arrays of promises

``()`` can be used to convert node-style callbacks into promises:

```javascript
Q.nfcall(function () {
return ['a', Q.resolve('b')]
})
.spread(function (a, b) {
// ...
})
```


Contributing
------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kew",
"description": "a lightweight promise library for node",
"version": "0.5.0",
"version": "0.6.0",
"homepage": "https://github.com/Medium/kew",
"authors": [
"Jeremy Stanley <[email protected]> (https://github.com/azulus)",
Expand Down

0 comments on commit dccef8b

Please sign in to comment.