# icg-rest-client

> A simple rest client

Latest version **0.1.3** (published 2014-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install icg-rest-client
pnpm add icg-rest-client
yarn add icg-rest-client
bun add icg-rest-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2014-09-08 |
| First published | 2014-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Trimeego |
| Maintainers | trimeego |

## Links

- npm: https://www.npmjs.com/package/icg-rest-client
- Repository: https://github.com/ICGGroup/icg-rest-client
- Issues: https://github.com/ICGGroup/icg-rest-client/issues
- npm.io page: https://npm.io/package/icg-rest-client

## Recent versions

- 0.1.3 (latest) — 2014-09-08
- 0.1.2 — 2014-09-08
- 0.1.0 — 2014-08-31

## README

## ICG Rest client

A simple rest client that reduces the amount of call management code that is required to use a typical rest/json API

### Usage

    var ICGRestClient = require("icg-rest-client");

    // Create the client with the API base url
    client = ICGRestClient("http://api.com/api");

    client.get("resource", {}, function(err, data){

    })

    client.get("resource", {headers:secToken}, function(err, data){
      ...
    })

    client.post("resource", {headers:secToken, data:{name:"Test"}}, function(err, data){
      ...
    })

    client.put("resource/12", {headers:secToken, data:{name:"Test"}}, function(err, data){
      ...
    })

---
_Source: https://npm.io/package/icg-rest-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
