listen.js

1.0.0 • Public • Published

listen.js

Listen.js is a function that helps abstract listening functionality for your express-based apps. There's a good chance it'll work for other stuff as well, but this has not been tested.

It supports listening on either a port or a unix socket and handles left behind socket files and such by checking if they're still in use. If a socket file is still in use, the process will exit. If not, it'll delete the socket file and listen.

$ npm install --save listen.js

Usage

var app = require('express')(),
  listen = require('listen.js')

listen(app, 3000);
// or
listen(app, '/var/run/myapp.sock');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i listen.js

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • chielkunkels