# lite-restclient

> Simple rest client to connect with APIs services.

Latest version **1.1.0** (published 2017-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install lite-restclient
pnpm add lite-restclient
yarn add lite-restclient
bun add lite-restclient
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-05-04 |
| First published | 2017-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rafael Fogel |
| Maintainers | bpinhosilva, tserram |
| Keywords | rest, http |

## Links

- npm: https://www.npmjs.com/package/lite-restclient
- Repository: https://github.com/bpinhosilva/lite-restclient
- Homepage: https://github.com/bpinhosilva/lite-restclient#readme
- Issues: https://github.com/bpinhosilva/lite-restclient/issues
- npm.io page: https://npm.io/package/lite-restclient

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^2.6.1
- [request](https://npm.io/package/request.md) ^2.81.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-05-04
- 1.0.0 — 2017-03-09

## README

# lite-restclient
Simple rest client to connect with APIs services.

#### Installation

```bash
    $ npm install --save lite-restclient
```

#### Notes
Node version: >= 6
(not tested with previous versions).

This module uses promises. 

#### Sample code

```javascript
    'use strict';
    
    let liteRestClient = require('lite-restclient');
    let Request = liteRestClient.request;
    let RestClient = liteRestClient.client;
    let myRestClient = new RestClient();
    
    let requestOptions = {
        qs: {
            q: 'nodejs'
        },
        url: 'http://www.google.com'
    };
    
    let request = new Request(requestOptions);
    
    myRestClient.get(request.getPrototype())
        .then(result => {
            console.log(result);
        }).catch(err => {
            console.log(err);
    });
```

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