0.0.4 • Published 4 years ago

eureka-js-connection v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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)