
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
set-blocking
Advanced tools
set blocking stdio and stderr ensuring that terminal output does not truncate
set blocking stdio and stderr ensuring that terminal output does not truncate.
const setBlocking = require('set-blocking')
setBlocking(true)
console.log(someLargeStringToOutput)
This was created as a shim to address the bug discussed in node #6456. This bug crops up on
newer versions of Node.js (0.12+), truncating terminal output.
You should be mindful of the side-effects caused by using set-blocking:
true, it will effect other modules
consuming your library. In yargs we only call
setBlocking(true) once we already know we are about to call process.exit(code).isTTY = true, this is
the default spawn() behavior.ISC
The block-stream package provides functionality for creating streams that block until a certain number of bytes have been collected. While it serves a different purpose by focusing on the manipulation and control of stream data in blocks, it shares the concept of controlling stream behavior with set-blocking. However, set-blocking is specifically tailored for setting the blocking behavior of process output streams, making it more specialized for scenarios involving stdout or stderr.
end-of-stream is a package that allows you to wait for the end of a stream (readable, writable, or duplex) and execute a callback. It is similar to set-blocking in the sense that both packages deal with stream behavior and ensuring certain conditions are met before proceeding. However, end-of-stream focuses on detecting the end of a stream, whereas set-blocking specifically enables or disables blocking behavior on stdout and stderr.
FAQs
set blocking stdio and stderr ensuring that terminal output does not truncate
The npm package set-blocking receives a total of 28,975,371 weekly downloads. As such, set-blocking popularity was classified as popular.
We found that set-blocking 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
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.