UNPKG

sepro

Version:

Sepro is a http proxy which discovers where to proxy a request.

8 lines (6 loc) 217 B
exports.getKey = function (options) { if (!options || (!options.host || !options.port)) { throw new Error('options.host and options.port are required.') } return [ options.host , options.port ].join(':') }