
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
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.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.