This package has been retired and is no longer maintained.
It converted regular expression matches into ranges.
For new code, use JavaScript’s String.prototype.matchAll() with a global regular expression to collect matches and their indexes. Use ranges-merge to combine adjacent or overlapping ranges you build from those matches.
See the published package on npm for its last published version.