
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
ranges-merge
Advanced tools
Merge and sort string index ranges
This package is pure ESM. If you're not ready yet, install an older version of this program, 7.1.0 (npm i ranges-merge@7.1.0).
npm i ranges-merge
import { strict as assert } from "assert";
import { rMerge } from "ranges-merge";
// joining edges:
assert.deepEqual(
rMerge([
[1, 2],
[2, 3],
[9, 10],
]),
[
[1, 3],
[9, 10],
],
);
// an overlap:
assert.deepEqual(
rMerge([
[1, 5],
[2, 10],
]),
[[1, 10]],
);
Please visit codsen.com for a full description of the API.
To report bugs or request features or assistance, raise an issue on GitHub.
MIT License
Copyright © 2010-2025 Roy Revelt and other contributors

FAQs
Merge and sort string index ranges
The npm package ranges-merge receives a total of 189,525 weekly downloads. As such, ranges-merge popularity was classified as popular.
We found that ranges-merge demonstrated a healthy version release cadence and project activity because the last version was released less than 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

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.