Usually, responding to signals dynamically can be accomplished by inspecting the signal argument
passed to your handler. However, if it is important that handlers are only invoked for a particular
signal, or if you'd like to respond to signals other than the defaults, you may optionally provide an
array of signals as a second argument:
import adeiu from'@darkobits/adeiu';
// Register callback that will _only_ be invoked on SIGINT:adeiu(() => {
// SIGINT cleanup tasks.
}, ['SIGINT']);
We found that @darkobits/adeiu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 01 Feb 2024
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.