micromatch / to-regex-rangeLinks
Pass two numbers, get a regex-compatible source string for matching ranges. Fast compiler, optimized regex, and validated against more than 2.78 million test assertions. Useful for creating regular expressions to validate numbers, ranges, years, etc.
☆168Updated last year
Alternatives and similar repositories for to-regex-range
Users that are interested in to-regex-range are comparing it to the libraries listed below
Sorting:
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated 9 months ago
- Create an array of unique values, in order, from the input arrays☆76Updated 4 years ago
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆241Updated 6 months ago
- Sort the keys of an object☆104Updated 11 months ago
- Compare strings containing a mix of letters and numbers in the way a human being would in sort order.☆112Updated 9 months ago
- Check if a string or buffer is SVG☆141Updated last month
- Strip block comments or line comments from JavaScript code.☆117Updated last year
- Filter object keys and values into a new object☆103Updated last year
- 🚸 Cross platform children list of a PID.☆125Updated 2 years ago
- Get the real path of the system temp directory☆82Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 5 months ago
- Get a random item from an array☆56Updated 3 years ago
- Write a package.json file☆88Updated last year
- Compose promise-returning & async functions into a reusable pipeline☆123Updated 4 years ago
- Check if your package was installed globally☆70Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes☆165Updated last year
- Get a formatted timestamp. Used in gulp, assemble, generate, and many others.☆110Updated 4 years ago
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- A JSON with CSS color names☆120Updated 6 months ago
- Wordwrap a string with ANSI escape codes☆126Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆123Updated 5 months ago
- Get the gzipped size of a string or buffer☆172Updated 3 years ago
- Find the closest package.json file☆164Updated 2 months ago
- Wait for a condition to be true☆158Updated 2 years ago
- normalizes package metadata, typically found in package.json file.☆202Updated 2 weeks ago
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆156Updated 2 years ago
- Parse milliseconds into an object☆119Updated last year
- Find the root directory of a Node.js project or npm package☆246Updated 2 months ago