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:
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆242Updated 8 months ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated last month
- Sort the keys of an object☆105Updated last month
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 3 years 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
- Check if a string matches the name of a Node.js builtin module☆61Updated 7 months ago
- Get the gzipped size of a string or buffer☆172Updated 3 years ago
- Create an array of unique values, in order, from the input arrays☆76Updated 4 years ago
- Start a promise chain☆60Updated 3 weeks ago
- Check if a string or buffer is SVG☆141Updated 3 months ago
- string representations of objects in node and the browser☆155Updated last week
- Get a random item from an array☆56Updated 3 years ago
- Strip leading whitespace from each line in a string☆142Updated last month
- Indent each line in a string☆113Updated 3 years ago
- Filter object keys and values into a new object☆104Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆124Updated last month
- Check if a value is a plain object☆103Updated last year
- Check if a string is an IP address☆115Updated 2 years ago
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Make a callback- or promise-based function support both promises and callbacks.☆111Updated last year
- Check if a string is a valid filename☆62Updated 4 years ago
- fs.readdir() with filter, recursion, absolute paths, promises, streams, and more!☆86Updated 5 years ago
- a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm☆103Updated this week
- Get the real path of the system temp directory☆82Updated 3 years ago
- Strip block comments or line comments from JavaScript code.☆118Updated last year
- Compare strings containing a mix of letters and numbers in the way a human being would in sort order.☆113Updated last year
- Write a package.json file☆89Updated last month
- Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you …☆73Updated 5 years ago
- Find the closest package.json file☆165Updated 4 months ago
- 🚸 Cross platform children list of a PID.☆126Updated 2 years ago