listenex

0.0.1 • Public • Published

listenex

Turns this awful piece of code:

server.listen(process.argv[2] || process.env.PORT || 8080, process.argv[3] || process.env.HOST || 'localhost', function () {
  var address = this.address()
  console.log('%s mode', process.env.NODE_ENV || 'development')
  console.log('listening %s:%d', address.address, address.port)
})

to this:

var listenex = require('listenex')
 
server.listen()

MIT licence

Readme

Keywords

none

Package Sidebar

Install

npm i listenex

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • stagas