# config-server-lite-client

> Client API for config-server

Latest version **0.1.3** (published 2017-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install config-server-lite-client
pnpm add config-server-lite-client
yarn add config-server-lite-client
bun add config-server-lite-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 | 2017-09-04 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sukant Gujar |
| Maintainers | sukantgujar |

## Links

- npm: https://www.npmjs.com/package/config-server-lite-client
- Repository: https://github.com/SukantGujar/config-server-client
- Homepage: https://github.com/SukantGujar/config-server-client#readme
- Issues: https://github.com/SukantGujar/config-server-client/issues
- npm.io page: https://npm.io/package/config-server-lite-client

## Recent versions

- 0.1.3 (latest) — 2017-09-04
- 0.1.2 — 2017-09-04

## README

# config-server-client
This is a client library for [config-server-lite](https://github.com/SukantGujar/config-server) application for nodejs and browser environments.

# Installation
## With yarn
`yarn install config-server-lite-client`
## With npm
`npm install config-server-lite-client`

> This library uses `axios` as peerDependency for requests. Please provide one in your project.

# Usage
## Nodejs
```
var clientFactory = require("config-server-lite-client"),
client = new clientFactory("http://config-server-host:port/api", "clientapikey");

client.readConfig().then(configJson => console.log(configJson));

```

## Browser with Webpack

```
import ConfigServerClient from "config-server-lite-client";

const client = new ConfigServerClient("http://config-server-host:port/api", "clientapikey");

client.readConfig().then(configJson => console.log(configJson));

```

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