
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
stream-write
Advanced tools
Write to streams, respecting backpressure.
Write random numbers to an http response until it ends:
var write = require('stream-write');
var http = require('http');
http.createServer(function(req, res){
(function next(){
write(res, ''+Math.random(), function(err, open){
if (err) throw err;
if (open) next();
});
})();
}).listen(8000);
Write chunk to stream and call fn once stream is writable again, or an error happened.
The second parameter to fn is false when stream ended and you should stop writing to it.
When an HTTP request ended, the HTTP response stays writable, only it's
underlying socket closes. To stay consistent with other streams' behavior,
in that case write() will throw an error itself.
$ npm install stream-write
MIT
FAQs
Write to a stream promise style
The npm package stream-write receives a total of 201 weekly downloads. As such, stream-write popularity was classified as not popular.
We found that stream-write 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.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.