A wrapper for the request module to allow for simpler RESTful API transactions.
A wrapper for the request module to allow for simpler RESTful API transactions.
const envelope = require("node-envelope");
envelope.setBaseUrl("http://127.0.0.1:3000");
envelope.get(
"status",
function(error, result) {
if(error) {
return console.error(error);
}
return console.log(result);
}
);
To install this module:
npm install node-envelope
To build the distribution files for this module:
npm run build
or
gulp build