
Security News
NIST Officially Stops Enriching Most CVEs as Vulnerability Volume Skyrockets
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.
redirect-stdio
Advanced tools
Utilities for redirecting node process stdout and stderr.
Note: Only works on MacOS and Linux.
Imagine you have a node app that logs to stdout and a bash script that runs your node process like this:
node myapp.js >> access.log
Later, you want to add logrotate, which moves access.log to
access.log.2 and then calls SIGUSR2 on your node process. But your
node process is logging to stdout, and can't exactly "reopen"
process.stdout.
With redirect-stio, you can:
pathFromFd to find where your process's stdout is actually goingSIGUSR2, re-open the log path you just found, and write that file
descriptor over the old one to rotate logsconst { reopenStdout, reopenStderr } = require('redirect-stdio');
process.on('SIGUSR2', function() {
reopenStdout();
reopenStderr();
});
Copyright 2023 Movable, Inc. See LICENSE.md.
FAQs
Utilities for redirecting stdout and stderr
The npm package redirect-stdio receives a total of 66 weekly downloads. As such, redirect-stdio popularity was classified as not popular.
We found that redirect-stdio 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
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.