3 ms·
In the case of Request, there is already an official wrapper for the library that supports promises. https://github.com/request/promise-core https://github.com/
by javagram 8y ago
In the case of Request, there is already an official wrapper for the library that supports promises. https://github.com/request/promise-core https://github.com/request/promise-core
It is a couple hundred lines of code though.