@intactile/node-api-client

A basic node REST api client based on superagent

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jul 13, 2018Nov 29, 2016Minified + gzip package size for @intactile/node-api-client in KB

Readme

node-api-client

A basic node REST api client based on superagent.

Build Status Code Climate Test Coverage

Install

npm install @intactile/node-api-client

Usage

import ApiClient from '@intactile/node-api-client';

const apiClient = new ApiClient();
apiClient.post('users', { firstName: 'John', lastName: 'Doe'  })
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.error(error);
  });

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.