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:
- Check if a string or buffer is SVG☆141Updated 2 months ago
- Filter object keys and values into a new object☆104Updated last year
- Parse milliseconds into an object☆119Updated last year
- Check if a string matches the name of a Node.js builtin module☆61Updated 6 months ago
- Check if a string is a valid filename☆62Updated 4 years ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- Get the real path of the system temp directory☆81Updated 2 years ago
- Sort the keys of an object☆105Updated 3 weeks ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated 2 weeks ago
- A JSON with CSS color names☆122Updated last week
- Check if your package was installed globally☆70Updated last year
- Strip leading whitespace from each line in a string☆142Updated last week
- Wait for a condition to be true☆161Updated this week
- Timeout a promise after a specified amount of time☆293Updated last week
- Make a callback- or promise-based function support both promises and callbacks.☆111Updated last year
- Boxes for use in the terminal☆102Updated last year
- Strip block comments or line comments from JavaScript code.☆117Updated last year
- Get the hash of an object☆137Updated last year
- Write a package.json file☆88Updated last week
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated last week
- Create an array of unique values, in order, from the input arrays☆76Updated 4 years ago
- Wordwrap a string with ANSI escape codes☆128Updated 2 weeks ago
- Tries to execute a function and discards any error that occurs.☆67Updated last week
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆241Updated 8 months ago
- Detect the indentation of code☆197Updated last week
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Find the closest package.json file☆165Updated 3 months ago
- Make a function mimic another one☆95Updated 10 months ago
- Read a package.json file☆171Updated last year