# @crossworth/service-manager

> A client for a simple service manager

Latest version **0.1.3** (published 2019-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @crossworth/service-manager
pnpm add @crossworth/service-manager
yarn add @crossworth/service-manager
bun add @crossworth/service-manager
```

## 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 | 2019-10-02 |
| First published | 2019-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Pedro Henrique |
| Maintainers | crossworth |
| Keywords | service manager |

## Links

- npm: https://www.npmjs.com/package/@crossworth/service-manager
- Repository: https://github.com/crossworth/service-manager-js-client
- Issues: https://github.com/crossworth/service-manager-js-client/issues
- npm.io page: https://npm.io/package/@crossworth/service-manager

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [dns-sync](https://npm.io/package/dns-sync.md) ^0.2.0
- [is-docker](https://npm.io/package/is-docker.md) ^2.0.0
- [internal-ip](https://npm.io/package/internal-ip.md) ^4.3.0

## Recent versions

- 0.1.3 (latest) — 2019-10-02
- 0.1.2 — 2019-10-02
- 0.1.1 — 2019-10-02
- 0.1.0 — 2019-10-02

## README

Javascript client for [https://github.com/crossworth/service-manager](https://github.com/crossworth/service-manager)

Example usage:
```js
const serviceManager = require('@crossworth/service-manager');

const PORT = 8080;

serviceManager.register({
  name: 'MyService',
  managerEndpoint: 'http://localhost:8080',
  endpoint:  serviceManager.getLocalIP() + ':' + PORT,
  value: 'my value',
});

```

You can provide a `function` to the `value` as well.

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