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:
- Sort the keys of an object☆105Updated 3 months ago
- ⏱️Zero CPU overhead, zero dependency, true event-loop blocking sleep ⏱️☆84Updated 5 years ago
- Use property paths (`a.b.c`) get a nested value from an object.☆291Updated 9 months ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated this week
- A JSON with CSS color names☆123Updated 2 weeks ago
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆242Updated 10 months ago
- Strip block comments or line comments from JavaScript code.☆118Updated 2 years ago
- Is the value an object, and not an array or null?☆108Updated last year
- Check if your package was installed globally☆69Updated 2 years 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☆61Updated 9 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 3 years ago
- Strip leading whitespace from each line in a string☆143Updated last month
- Indent each line in a string☆113Updated 3 years ago
- Check if a string or buffer is SVG☆143Updated 4 months ago
- string representations of objects in node and the browser☆158Updated last month
- 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…☆96Updated 2 years ago
- 🚸 Cross platform children list of a PID.☆126Updated 2 years ago
- Check if a value is a plain object☆103Updated last year
- Tokenizes a string that represents a regular expression.☆96Updated last week
- Make a callback- or promise-based function support both promises and callbacks.☆111Updated 2 years ago
- Compare strings containing a mix of letters and numbers in the way a human being would in sort order.☆113Updated last year
- Parse milliseconds into an object☆122Updated last year
- Filter object keys and values into a new object☆105Updated last year
- Parse and stringify the HTML <img> srcset attribute☆142Updated 2 months ago
- Make a function mimic another one☆96Updated last year
- Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.☆42Updated 2 years ago
- Find the closest package.json file☆166Updated 5 months ago
- Get a random temporary file path☆81Updated 2 years ago
- Sort an array on an object property☆201Updated last month