
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
HTTP Range processing utilities.
Lead Maintainer - Gil Pedersen
// basic usage
const range = Ammo.header('bytes=1-5', 10);
// range --> [{ from: 1, to: 5 }]
// multiple ranges
const range = Ammo.header('bytes=1-5,7-10', 10);
// range --> [{ from: 1, to: 5 }, { from: 7, to: 9 }]
// streams (get range within a `source`)
const range = Ammo.header('bytes=1000-4000', 5000);
const stream = new Ammo.Stream(range[0]);
const buffer = async Wreck.read(source.pipe(stream));
// buffer is the portion of source within range
header(header, length)Parses the range from a HTTP header.
header - A string in the form of bytes=from-to, where from and to are
integers specifying the range. Both are optional. Multiple ranges can be passed
as a comma delimited list.length - A positive integer specifying the maximum length the range can
cover. If a to value passed in the header string is greater than length,
the to value is set as length - 1.Returns an array of objects with the properties from and to, which specify
the beginning and ending of the range. Overlapping ranges are combined into one
object. Returns null for invalid input.
new Ammo.Stream(range)Creates a Transform Stream that extracts
the portion of a piped in stream within range.
range - an object with the properties from and to that specify the range
of the piped in stream to read. Objects returned by Ammo.header can be passed
into range.FAQs
HTTP Range processing utilities
The npm package ammo receives a total of 21,742 weekly downloads. As such, ammo popularity was classified as popular.
We found that ammo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.