项目作者: nitro404

项目描述 :
A wrapper for the request module to allow for simpler RESTful API transactions.
高级语言: JavaScript
项目地址: git://github.com/nitro404/node-envelope.git
创建时间: 2018-02-12T02:59:07Z
项目社区:https://github.com/nitro404/node-envelope

开源协议:

下载


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

  1. const envelope = require("node-envelope");
  2. envelope.setBaseUrl("http://127.0.0.1:3000");
  3. envelope.get(
  4. "status",
  5. function(error, result) {
  6. if(error) {
  7. return console.error(error);
  8. }
  9. return console.log(result);
  10. }
  11. );

Installation

To install this module:

  1. npm install node-envelope

Building

To build the distribution files for this module:

  1. npm run build

or

  1. gulp build