Socket
Socket
Sign inDemoInstall

@jsenv/node-signals

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/node-signals

Register callback on node process signals.


Version published
Weekly downloads
52
decreased by-80.88%
Maintainers
2
Weekly downloads
 
Created
Source

node-signals

Register callback on node process signals.

github package npm package github ci codecov coverage

Table of contents

Presentation

@jsenv/node-signals was designed to cleanup things (gracefully if possible), when node process exits.

Installation

npm install @jsenv/node-signals@2.0.0
import { teardownSignal } from "@jsenv/node-signals"

teardownSignal.addCallback((reason) => {
  console.log(`teardown because ${reason}`)
})

For node < 13

const { teardownSignal } = require("@jsenv/node-signals")

FAQs

Package last updated on 31 Jan 2020

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