GitShow/sindresorhus/simplify-ranges
sindresorhus

simplify-ranges

Merge and normalize adjacent or overlapping integer ranges

by sindresorhus
Star on GitHubForknpm

JavaScript

34 stars2 forks2 contributorsQuiet · 2y agoSince 2023v1.0.0MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus4 contributions
TomerAberbach
TomerAberbach1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
faizanu94
Optimized range normalization and merging by reducing intermediate arraysMergedPR

This PR introduces a small optimization which eliminates the creation of multiple intermediate arrays by replacing the loop with a function to accumulate the normalized and merged ranges, which results in improved performance and memory efficiency - specially for larger datasets jsPerf Benchmark: https://jsperf.app/sexite/1/preview Original: Optimized:

faizanu94 · 2y ago
TomerAberbach
fix: typo in function nameMergedPR
TomerAberbach · 2y ago
Structured data for AI agents

Repository: sindresorhus/simplify-ranges. Description: Merge and normalize adjacent or overlapping integer ranges Stars: 34, Forks: 2. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, TomerAberbach.

·@ofershap

Replace github.com with gitshow.dev