cloud-foundry-service-discovery
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

cloud-foundry-service-discovery

Axios based cloud foundry service discovery client for node.js.

Enable nodejs application dynamically discover and resolve url of other regiesterd apps through cloud foundry service registry

Installing

Note: axios is a peer dependency.

npm install axios cloud-foundry-service-discovery

Example

import {resolveAppId} from 'cloud-foundry-service-discovery'

resolveAppId("appId").then(response=>console.log(appInstanceUrl)).catch(error=>console.log(error))

Reference

Pivotal Cloud Foundry Service Registry

Package Sidebar

Install

npm i cloud-foundry-service-discovery

Weekly Downloads

4

Version

0.1.7

License

MIT

Unpacked Size

7.02 kB

Total Files

5

Last publish

Collaborators

  • weiyueli