# eureka-client-node

> Eureka client for nodejs app

Latest version **1.0.0** (published 2019-11-19) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2019-11-19 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Brandon Monterrozo |
| Maintainers | mortem45 |
| Keywords | eureka |

## Links

- npm: https://www.npmjs.com/package/eureka-client-node
- npm.io page: https://npm.io/package/eureka-client-node

## Dependencies (3)

- [ip](https://npm.io/package/ip.md) ^1.1.5
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [request](https://npm.io/package/request.md) ^2.88.0

## Recent versions

- 1.0.0 (latest) — 2019-11-19

## README

# Welcome to StackEdit!

A JavaScript implementation of a client for Eureka ([https://github.com/Mortem45/eureka-client](https://github.com/Mortem45/eureka-client))


# Usage

First, install the module into your node project:

    npm install eureka-client-node --save

## Import Packege

    const { eurekaClient } = require('eureka-client-node')
    //OR
    import { eurekaClient } from 'eureka-client-node'


## Instance

    eurekaClient(UrlServer, AppName, AppPort)

## Example with Express

    'use strict'

    const  express  =  require('express')
    const { eurekaClient } =  require('eureka-client-node')

    const  app  =  express()
    const  port  =  3000
    const  appName  =  'MyApp'
    const  urlEureka  =  'http://localhost:8761'

    app.get('/', (req, res)  =>  res.send('Hello World!'))

    app.listen(port, ()  =>  {
    	eurekaClient(urlEureka, appName, port)
    	console.log(`Example app listening on ${port} port!`)
    })

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