New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

listen.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

listen.js

A helper function which helps your express apps listen on a port or socket

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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');

Keywords

FAQs

Package last updated on 20 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc