# @everymundo/resilient-eureka

> Resilient HTTP middleware for Netflix Eureka discovery service

Latest version **0.1.0** (published 2019-04-24) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2019-04-24 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jakub Żurawski |
| Maintainers | eduardomundo, hdelcastillo, front10devs, devrchancay, alexandprivate, yartiles, jonmorazav, joseivansandoya, caviola, christopherepm, mvcruzata, emdavidmoreno, everymundo-admin, ballester, danielsan, avivero93, anahiem, neilgoldman, raymer, herlin, davidxl, hugopalomares, gallegogt, karinfdez, ernestocarrasco, erlin |
| Keywords | resilient, fault, tolerant, balance, ajax, http, https, xhr, request, agent, balancer, rest, netflix, eureka, discovery |

## Links

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

## Dependencies (1)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.19

## 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

- 0.1.0 (latest) — 2019-04-24

## README

# resilient-eureka
[resilient.js](https://github.com/resilient-http/resilient.js) middleware for [Netflix Eureka](https://github.com/Netflix/eureka) discovery service


## Installation

```
npm install resilient-eureka --save
```

## Usage

```js
const Resilient = require('resilient')
const eurekaMiddleware = require('resilient-eureka')

const client = Resilient()

//eureka urls
const servers = [
  'http://demo.eureka.com'
]

client.use(eurekaMiddleware({
  serviceName: 'service'
}))

client.discoveryServers(servers)

// Test request
client.get('/', function (err, res) {
  if (res.status === 200) {
    console.log('Response:', res)
  }
})
```

## Params

- **serviceName/serviceVipAddress** `string` - name/vipAddress of service registered in Eureka (one of these is required)
- **path** `string` - path to query for all Eureka's services instances (default: `/eureka/apps`)
- **protocol** `string` - transport protocol (default: `http`)

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