Skip to content

Commit

Permalink
Update README to mention util.promisify() (request#2824)
Browse files Browse the repository at this point in the history
Update README.md to mention that util.promisify can be used to convert a regular function that takes a callback to return a promise instead.
  • Loading branch information
riverspirit authored and reconbot committed Nov 23, 2018
1 parent 2031447 commit 8d18919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ Several alternative interfaces are provided by the request team, including:
- [`request-promise-native`](https://github.com/request/request-promise-native) (uses native Promises)
- [`request-promise-any`](https://github.com/request/request-promise-any) (uses [any-promise](https://www.npmjs.com/package/any-promise) Promises)

Also, [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original), which is available from Node.js v8.0 can be used to convert a regular function that takes a callback to return a promise instead.


[back to top](#table-of-contents)

Expand Down

0 comments on commit 8d18919

Please sign in to comment.