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