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 11 months ago
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:
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆241Updated 5 months ago
- Make a function mimic another one☆94Updated 8 months ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated 8 months ago
- Create an array of unique values, in order, from the input arrays☆76Updated 4 years ago
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Sort an array on an object property☆200Updated 11 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
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- Filter object keys and values into a new object☆102Updated last year
- Toggle the CLI cursor☆110Updated 11 months ago
- Detect the indentation of code☆196Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if a string or buffer is SVG☆140Updated last week
- Sort the keys of an object☆104Updated 10 months ago
- Wordwrap a string with ANSI escape codes☆126Updated last year
- Tokenizes a string that represents a regular expression.☆96Updated last year
- Find the closest package.json file☆164Updated last month
- a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm☆102Updated this week
- The regular expression parser for ECMAScript.☆157Updated 2 years ago
- Get the real path of the system temp directory☆82Updated 2 years ago
- A JSON with CSS color names☆120Updated 5 months ago
- Brace expansion, as known from sh/bash, in JavaScript☆194Updated last month
- Check if a value is a plain object☆102Updated last year
- Parse milliseconds into an object☆119Updated last year
- ⏱️Zero CPU overhead, zero dependency, true event-loop blocking sleep ⏱️☆82Updated 5 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 4 months ago
- Make a callback- or promise-based function support both promises and callbacks.☆111Updated last year
- string representations of objects in node and the browser☆152Updated 5 months ago
- Monorepo for NodeLib libraries☆74Updated 6 months ago
- Timeout a promise after a specified amount of time☆291Updated 6 months ago