UNPKG

flyio

Version:

Lightweigh Promise based HTTP client for the browser and node.js

9 lines (8 loc) 257 B
//quick app entry const Fly = require("./fly") const EngineWrapper = require("./engine-wrapper") const adapter = require("./adapter/hap") module.exports = function (fetch) { let hapEngine = EngineWrapper(adapter(fetch)) return new Fly(hapEngine); }