eureka-js-connection

0.0.4 • Public • Published

Eureka-js-connection

Example using netflix eureka

Usage

With url

const getAllServices = require('eureka-js-connection')
 
getAllServices('http://localhost:8080')
  .then(console.log)
  .catch(console.error)

Via environment variables

set en variables via cross-env EUREKA_PORT || 8761 EUREKA_URI || 'http://localhost' or EUREKA_URL || 'http://localhost:8080'

const getAllServices = require('eureka-js-connection')
 
getAllServices()
  .then(console.log)
  .catch(console.error)

Readme

Keywords

none

Package Sidebar

Install

npm i eureka-js-connection

Weekly Downloads

5

Version

0.0.4

License

ISC

Unpacked Size

43 kB

Total Files

6

Last publish

Collaborators

  • syzer