http-request-sync 0.0.1
Install from the command line:
Learn more about npm packages
$ npm install @day1co/http-request-sync@0.0.1
Install via package.json:
"@day1co/http-request-sync": "0.0.1"
About this version
quick and dirty "synchoronous" wrapper of http.request
const { httpRequestSync } require('@day1co/http-request-sync');
const res = httpRequestSync('http://httpbin.org/get');
console.log(res.statusCode);
console.log(res.statusMessage);
console.log(res.headers);
console.log(res.data);may the SOURCE be with you...