1.0.1 • Published 9 years ago
appherd-client v1.0.1
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')