Skip to content
enhances server.listen()
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
Makefile
README.md
listenex.js
package.json

README.md

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

Something went wrong with that request. Please try again.