Created
October 26, 2014 16:32
-
-
Save octatone/495f002fefc1e24d9a1c to your computer and use it in GitHub Desktop.
Promisifying a normal Node function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'), | |
promisify = require('es6-promisify'), | |
get = promisify(request.get); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment