Need private packages and team management tools?Check out npm Teams »

koa4listen

0.0.1 • Public • Published

koa4listen

Installation

$ npm install --save koa4listen

Example

var createServer = require('koa4listen');
var opts = require('cert4https');
var app = require('koa')();
var server = createServer(app, opts);
server.on('listening', function () {
  var web_listen = server.address().address + ':' + server.address().port;
  console.log('service listein on ' + web_listen);
});
server.listen(3000);

Install

npm i koa4listen

DownloadsWeekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • avatar