# @everymundo/em-eureka

> wrapper around eureka-js-client for everymundo microservice apps

Latest version **1.11.1** (published 2022-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @everymundo/em-eureka
pnpm add @everymundo/em-eureka
yarn add @everymundo/em-eureka
bun add @everymundo/em-eureka
```

## 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.11.1 |
| Published | 2022-05-11 |
| First published | 2018-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 81.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Daniel Santana |
| Maintainers | alex-orga, vladimirpetrov, estebanpablo89, yartiles, jonmorazav, emdavidmoreno, everymundo-admin, ballester, danielsan, halain, avivero93, anahiem, herlin, karinfdez, ernestocarrasco, erlin, front10devs, hdelcastillo, dcuevacem, rodneyem, ortega.dc98, pedroleon917, kaylingw, joeaspiazuem, lazjramos, daniuska-em, cstansfld |

## Links

- npm: https://www.npmjs.com/package/@everymundo/em-eureka
- Repository: https://github.com/EveryMundo/em-eureka
- Homepage: https://github.com/EveryMundo/em-eureka#readme
- Issues: https://github.com/EveryMundo/em-eureka/issues
- npm.io page: https://npm.io/package/@everymundo/em-eureka

## Dependencies (9)

- [ip](https://npm.io/package/ip.md) ^1.1.5
- [jws](https://npm.io/package/jws.md) ^3.2.2
- [resilient](https://npm.io/package/resilient.md) ^0.4.0
- [@everymundo/simple-logr](https://npm.io/package/@everymundo/simple-logr.md) ^1.2.1
- [@everymundo/eureka-js-client](https://npm.io/package/@everymundo/eureka-js-client.md) ^1.0.0
- [@everymundo/resilient-eureka](https://npm.io/package/@everymundo/resilient-eureka.md) *
- [@everymundo/aws-instance-identity](https://npm.io/package/@everymundo/aws-instance-identity.md) ^0.2.0
- [@everymundo/config-service-client](https://npm.io/package/@everymundo/config-service-client.md) ^2.0.1
- [@everymundo/generate-microservice-name](https://npm.io/package/@everymundo/generate-microservice-name.md) ^1.1.1

## Recent versions

- 1.11.1 (latest) — 2022-05-11
- 1.11.0 — 2022-05-06
- 1.10.7 — 2021-04-26
- 1.10.6 — 2021-02-16
- 1.10.5 — 2019-10-16
- 1.10.4 — 2019-10-16
- 1.10.3 — 2019-10-10
- 1.10.2 — 2019-06-19
- 1.10.1 — 2019-04-30
- 1.9.1 — 2018-12-17
- 1.9.0 — 2018-11-13
- 1.8.4 — 2018-11-09
- 1.8.3 — 2018-10-30
- 1.8.2 — 2018-10-26
- 1.8.0 — 2018-09-14
- … 17 more at https://npm.io/package/@everymundo/em-eureka/versions

## README

# @everymundo/em-eureka

## Description

This is a tool to help integrate nodejs applications with the everymundo microservices infrastructure by allowing nodejs apps to connect to Netflix Eureka
servers.

## Installation

```sh
npm install @everymundo/em-eureka
```

## Usage
```js
const {EmEureka:{createClient}} = require('@everymundo/em-eureka');

// To connect to eureka and put this app available to other apps to use
const eurekaCli = createClient({ app: 'myAppName', port: 3001 });

// Then, after the previous line
// to use apps already available on eureka
const otherApp = eurekaCli.service('otherApp', {headers: {'x-api-key'}});

otherApp.get('/method?param1=value1&param2=value')
  .then(({body}) => {
    console.log({body});
  })

otherApp.post('/something?'+Math.random(),{timeout:250, data:{something:'else'}})
  .then((res) => {
    const {body, status, headers} = res
    console.log({body, status, headers});
  })
```

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