appherd-client

1.0.1 • Public • Published

appherd-client

Service client to interact with appherd

Usage

let client = new AppHerdClient(port)
client.fetchHerd()
.then(() => {
  var port = client.port('service-name')
  var url = client.url('service-name') // http://localhost:port

  client.fetch('service-name', '/absolute/path')
  // returns fetch('http://localhost:port/absolute/path')

Readme

Keywords

none

Package Sidebar

Install

npm i appherd-client

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • khoomeister