This PR allow using async/await as much as possible.
To achieve this, it requires going from request (which does not support Promises) to a Promises compatible module. request does have a Promise equivalent as request-promise-native, but is far less popular than node-fetch which replicate browser fetch API.
This PR allow using
async/await
as much as possible.To achieve this, it requires going from request (which does not support Promises) to a Promises compatible module.
request
does have a Promise equivalent as request-promise-native, but is far less popular than node-fetch which replicate browser fetch API.