
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.
generic-hex-dump
Advanced tools
Get individual lines of a typical hex dump. Use this to implement your own interface or whatever else you want.
var Dump = require('generic-hex-dump');
var buf = Buffer('abcdefghijklmnopqrstuvwxyz0123456789><\x00\x00');
var dump = new Dump(buf.length);
var lines = dump.lines();
for (var i = 0; i < lines; i++) {
var slice = dump.slice(buf, i);
console.log(
dump.offset(i),
dump.hex(slice).join(' '),
dump.strings(slice).join('')
);
}
Output:
$ node example.js
000000 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 abcdefghijklmnop
000010 71 72 73 74 75 76 77 78 79 7a 30 31 32 33 34 35 qrstuvwxyz012345
000020 36 37 38 39 3e 3c 00 00 6789><..
$ npm install generic-hex-dump
Create a new dump for a buffer of total length.
Get the number of lines the dump will have.
Get buf's slice for line.
Print the offset column for line.
Create an array of 2-character hex strings for each byte in slice.
Create an array of 1-character strings for each byte in slice, defaulting to . if a byte's value isn't human readable.
Get the width of the offset column.
Check if character code v is printable. Override this function to change what .strings() replaces with a ..
In the string column, replace character from with to. Either can be a char code or a single character string. If this is defined for a character, the .printable() check will be bypassed.
Example:
Replace all occurences of \r with ␍:
dump.replace('\r', '␍');
MIT
FAQs
Get individual lines of a typical hex dump
We found that generic-hex-dump 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.