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.
☆171Updated 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☆171Updated 3 weeks ago
- Check if a string or buffer is SVG☆143Updated 6 months ago
- Sort the keys of an object☆108Updated 5 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆112Updated 3 years ago
- Check whether a request can be retried based on the `error.code`☆82Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 4 months ago
- Check if a string matches the name of a Node.js builtin module☆63Updated 11 months ago
- Get the real path of the system temp directory☆85Updated 3 years ago
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆245Updated last year
- Check if a value is a plain object☆104Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 4 months ago
- Make a function mimic another one☆96Updated last year
- Strip block comments or line comments from JavaScript code.☆120Updated 2 years ago
- fs.readdir() with filter, recursion, absolute paths, promises, streams, and more!☆85Updated 5 years ago
- Get the latest version of an npm package☆176Updated last year
- Find the closest package.json file☆166Updated 8 months ago
- Compose promise-returning & async functions into a reusable pipeline☆127Updated 4 years ago
- Get a random temporary file path☆81Updated last week
- Strip leading whitespace from each line in a string☆145Updated 3 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 3 years ago
- Detect the indentation of code☆200Updated this week
- Wait for a condition to be true☆166Updated 4 months ago
- Make a callback- or promise-based function support both promises and callbacks.☆111Updated 2 years ago
- a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm☆103Updated last week
- Parse milliseconds into an object☆124Updated last year
- Check if your package was installed globally☆71Updated 2 years ago
- Create an array of unique values, in order, from the input arrays☆78Updated 4 years ago
- Indent each line in a string☆115Updated 3 years ago
- ⏱️Zero CPU overhead, zero dependency, true event-loop blocking sleep ⏱️☆85Updated 5 years ago
- Get the hash of an object☆141Updated 2 years ago