
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.
write-buffer
Advanced tools
Increases write throughput for small writes on node.js streams.
This is useful for doing stuff like writing access logs line by line to disk.
var fs = require('fs');
var writebuffer = require('write-buffer');
var stream = writebuffer(fs.createWriteStream('bla'), 1024);
for (var x = 0; x < 1000; x++) {
stream.write('small');
}
stream.end();
I included a small benchmark script. It writes one million access log like strings in single writes
127.0.0.1 - - [24/Dec/2015:20:01:30 -0100] "GET /great-things HTTP/1.1" 200 3395
I got following results on my laptop.
without buffer:
real 0m11.562s
user 0m5.224s
sys 0m7.403s
with buffer:
real 0m2.529s
user 0m1.472s
sys 0m1.075s
without buffering:
real 0m1.201s
user 0m0.935s
sys 0m0.273s
with buffer (cork):
real 0m1.046s
user 0m0.797s
sys 0m0.265s
FAQs
Increase stream throughput by buffering small writes
The npm package write-buffer receives a total of 0 weekly downloads. As such, write-buffer popularity was classified as not popular.
We found that write-buffer 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.