http-wrap
v1.0.2
Published
Simple wrapper around the HTTP module
Downloads
4
Readme
Usage
'use strict';
let Request = require('../');
Request({ method: 'GET', url: 'https://google.com' }) .then((data) => { /* data = { statusCode: <int, status code of the request>, data: <string || object, body of the request. converts to JSON if the content-type is json>, headers: <object, headers from the request>, url: <string, the original url> } */ });