{"library":"to-regex-range","type":"library","category":null,"description":"to-regex-range is a utility library that generates a regex-compatible source string for matching numeric ranges. It simplifies the complex task of creating regular expressions for ranges like '1 to 50' or '0001 to 5555', which can quickly become unwieldy to write manually. The current stable version is 5.0.1. While a specific release cadence isn't published, the library maintains a stable API. Key differentiators include its convenience in abstracting complex regex logic, extensive test validation (over 2.78 million assertions), and optimizations that produce smaller, efficient regular expressions by reducing duplicate sequences and utilizing fragment caching. It handles zero-padding and negative numbers, making it robust for various validation or parsing scenarios.","language":"javascript","status":"active","version":"5.0.1","tags":["javascript","bash","date","expand","expansion","expression","glob","match","match date"],"last_verified":"Wed May 27","install":[{"cmd":"npm install to-regex-range","imports":["import toRegexRange from 'to-regex-range';","const toRegexRange = require('to-regex-range');","import toRegexRange = require('to-regex-range');"]},{"cmd":"yarn add to-regex-range","imports":[]},{"cmd":"pnpm add to-regex-range","imports":[]}],"homepage":null,"github":"https://github.com/micromatch/to-regex-range","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/to-regex-range","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/to-regex-range/compatibility"}}