1.0.1 • Published 6 years ago

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

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

easy-get-request-with-headers

Simple HTTP GET requester that accepts headers.

Example of use

    $ npm i easy-get-request-with-headers --save

After install:

    const get = require('easy-get-request-with-headers');

    get('http://someurl',{'label':'someValue'},{someParameter:'someValue'})
        .then((body) => {
            console.log(body);
        })
        .catch((err) => {
            console.error(err);
        });
1.0.1

6 years ago

1.0.0

6 years ago