Node.js Request with Async/Await

node v8.17.0
version: 1.0.0
endpointsharetweet
const util = require('util') const request = require("request"); const requestPromise = util.promisify(request); const response = await requestPromise('https://www.google.com'); console.log('response', response.body);
Loading…

no comments

    sign in to comment