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☆170Updated last week
- Check if a string or buffer is SVG☆143Updated 5 months ago
- Create an array of unique values, in order, from the input arrays☆78Updated 4 years ago
- Sort the keys of an object☆107Updated 3 months ago
- Check whether a request can be retried based on the `error.code`☆82Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆62Updated 9 months ago
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆95Updated 2 years ago
- Make a function mimic another one☆97Updated last year
- Check if a string is a valid filename☆63Updated 4 years ago
- A JSON with CSS color names☆123Updated last month
- A static list of the Node.js builtin modules from the latest Node.js version☆125Updated 3 months ago
- Filter object keys and values into a new object☆105Updated last year
- a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm☆103Updated last week
- Check if your package was installed globally☆70Updated 2 years ago
- Get the gzipped size of a string or buffer☆173Updated 4 years ago
- Parse milliseconds into an object☆123Updated last year
- Start a promise chain☆60Updated 3 months ago
- Strip leading whitespace from each line in a string☆144Updated 2 months ago
- Indent each line in a string☆114Updated 3 years ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 3 months ago
- Get a random item from an array☆58Updated 3 years ago
- Compare strings containing a mix of letters and numbers in the way a human being would in sort order.☆113Updated last year
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆243Updated 11 months ago
- 🚸 Cross platform children list of a PID.☆126Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆130Updated 3 months ago
- Sort an array on an object property☆201Updated 2 months ago
- Check if a value is a plain object☆103Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 3 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆112Updated 3 years ago