index.js
function request(url){
  return new Promise(function(resolve, reject) {
    _request(url, function (error, response, body) {
      if(error) return reject(error);
      resolve({response, body})
    });
  });
}
function request(url){
  return new Promise(function(resolve, reject) {
    _request(url, function (error, response, body) {
      if(error) return reject(error);
      resolve({response, body})
    });
  });
}
function request ( url ) { return new Promise ( function ( resolve , reject ) { _request ( url , function ( error , response , body ) { if ( error ) return reject ( error ) ; resolve ( { response , body } ) } ) ; } ) ; }
wrapper for await compatible code
wrapper for await compatible code