node-envelope

1.0.10 • Public • Published

Node Envelope

NPM version Build Status Coverage Status Known Vulnerabilities Dependencies Downloads Install Size Contributors Pull Requests Welcome

A wrapper for the request module to allow for simpler RESTful API transactions.

Server-Side Usage

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

Installation

To install this module:

npm install node-envelope

Building

To build the distribution files for this module:

npm run build

or

gulp build

Dependents (2)

Package Sidebar

Install

npm i node-envelope

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

11.1 kB

Total Files

3

Last publish

Collaborators

  • nitro404