1.0.1 • Published 6 years ago
easy-post-request-with-headers v1.0.1
easy-request-with-headers
Simple HTTP POST requester that accepts headers.
Example of use
$ npm i easy-post-request-with-headers --save
After install:
const post = require('easy-post-request-with-headers');
post('http://someurl',{'label':'someValue'},{someParameter:'someValue'})
.then((body) => {
console.log(body);
})
.catch((err) => {
console.error(err);
});