Skip to content

Commit

Permalink
[Docs] Link to util.promisify-all
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and ljharb committed Jun 2, 2017
1 parent c2f8418 commit 032ff5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ const util = require('util');
```

Note: this package requires a native ES5 environment, and for `Promise` to be globally available. It will throw upon requiring it if these are not present.

## Promisifying modules

If you want to promisify a whole module, like the `fs` module, you can use [`util.promisify-all`](https://www.npmjs.com/package/util.promisify-all).

0 comments on commit 032ff5c

Please sign in to comment.