Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
siginfo
Utility module to print pretty messages on SIGINFO/SIGUSR1
SIGINFO
on BSD / macOS and SIGUSR1
on Linux, usually triggered by
Ctrl + T
, are by convention used to print information about
a long running process internal state. Eg. dd
will tell you how many blocks it
has written and at what speed, while xz
will tell you progress, compression
ratio and estimated time remaining.
This module wraps both signals, checks if the process is connected to TTY and lets you do whatever you want.
var siginfo = require('siginfo')
var pkg = require('./package.json')
siginfo(function () {
console.dir({
version: pkg.version,
uptime: process.uptime()
})
})
var removeListener = siginfo(queryFn, [force])
queryFn
can be used for whatever you want (logging, sending a UDP message, etc.).
Setting force = true
will attach the event handlers whether a TTY is present
or not.
npm install siginfo
FAQs
Utility module to print pretty messages on SIGINFO/SIGUSR1
The npm package siginfo receives a total of 5,255,977 weekly downloads. As such, siginfo popularity was classified as popular.
We found that siginfo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.