Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@everymundo/em-eureka

Package Overview
Dependencies
Maintainers
26
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everymundo/em-eureka

wrapper around eureka-js-client for everymundo microservice apps

  • 1.10.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-90.32%
Maintainers
26
Weekly downloads
 
Created
Source

@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

npm install @everymundo/em-eureka

Usage

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});
  })

FAQs

Package last updated on 30 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc