Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    listenexpublic

    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

    Keywords

    none

    install

    npm i listenex

    Downloadsweekly downloads

    4

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar