Socket
Socket
Sign inDemoInstall

@jsenv/node-signals

Package Overview
Dependencies
0
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jsenv/node-signals

Register callback on node process signals.


Version published
Maintainers
2
Install size
35.5 kB
Created

Readme

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

Last updated on 05 Feb 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc