npm install incito --save
const incito = require('incito');
const server = incito();
const port = server.port;
function handle() {
// magical request handling code
}
const server = incito(handle);
const app = express();
const server = incito(app);
const app = new Koa();
const server = incito(app.callback());
const server = incito({
type: 'https',
listener: app
options: {
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
},
});