Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
- match date
- match number
- match numbers
- match year
- View more
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.