# propserver-node-client

> NodeJS client for PropManager

Latest version **1.0.1** (published 2015-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install propserver-node-client
pnpm add propserver-node-client
yarn add propserver-node-client
bun add propserver-node-client
```

## 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.0.1 |
| Published | 2015-12-10 |
| First published | 2015-12-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pankaj Bhatt |
| Maintainers | panbhatt |
| Keywords | Nodejs, propmanager, client, property, manager, server |

## Links

- npm: https://www.npmjs.com/package/propserver-node-client
- Repository: https://github.com/panbhatt/propserver-node-client
- Homepage: https://github.com/panbhatt/propserver-node-client#readme
- Issues: https://github.com/panbhatt/propserver-node-client/issues
- npm.io page: https://npm.io/package/propserver-node-client

## Dependencies (3)

- [chai](https://npm.io/package/chai.md) ^3.4.1
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [sync-request](https://npm.io/package/sync-request.md) ^2.1.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.0.1 (latest) — 2015-12-10
- 1.0.0 — 2015-12-10

## README

propserver-node-client
===============
NodeJS client for Property Server available at    https://github.com/panbhatt/propserver

### Features
It provides the client API implementation for Property Manager server.
* Retrieve all the API for a Project by its Name/Env/Release
* Provider refresh() to refresh the keys at runtime while the application is running.

### Install

    npm install propserver-node-client

## Introduction

This is lightweight node.js module for using Property Manager server. It provides the client implementation of the API which makes it very useful and easy to retrive the properties (KEYS) of a project from the centralized Property Server.


Here is an example on how to use it:

```js

var propManagerConfig = {
    propManagerUrl : "http://localhost:3000",
    projectName : "MyProject",
    environment : "DEV",
    release : "0.0"
};

var client = require('propserver-node-client')(propManagerConfig);
var keyValue = client.get('databaseURL');
console.log("Returned value is = " , keyValue);

```

## Property Manager configuration object attributes

* `propManagerUrl`: A URL that points to the API Endpoint of PROPERTY MANAGER SERVER   [ REQUIRED ]
* `projectName`: Name of the project for which we want the properties are to be taken from the property Server [ REQUIRED ]
* `environment`: Name of the managed environment for which the properties are to be taken from the property Server [ REQUIRED ]
* `release`: Name of the release like 'v1.0', '0.0' for which the properties are being are to be taken from the property server [ REQUIRED ]

[See more]: https://github.com/panbhatt/propserver

## Methods

### get(keyName)
Main method. Returns the value of the key for the PROJECT/ENV/RELEASE combination being present at the property server. Will be undefined if the key is not present.

### getAllKeys()
This will retrieve all the keys of for the PROJECT/ENV/RELEASE combination being maintained at the property server.

### refres()
Refresh the internal cache by fetching the set of keys for the PROJECT/ENV/RELEASE combination.



## LICENSE - "MIT License"


Copyright (c) 2015 Pankaj Bhatt (panbhatt@gmail.com)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

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