1.0.1 • Published 6 years ago

easy-post-request-with-headers v1.0.1

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
6 years ago

easy-request-with-headers

https://img.shields.io/npm/v/easy-post-request.svg https://img.shields.io/npm/dm/easy-post-request.svg

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);
        });