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 last month
- Filter object keys and values into a new object☆105Updated last year
- Check whether a request can be retried based on the `error.code`☆82Updated 4 years ago
- Strip leading whitespace from each line in a string☆145Updated 4 months ago
- Make a function mimic another one☆96Updated last year
- Make a callback- or promise-based function support both promises and callbacks.☆111Updated 2 years ago
- A JSON with CSS color names☆123Updated 3 months ago
- Get the real path of the system temp directory☆85Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆63Updated 11 months ago
- Check if your package was installed globally☆71Updated 2 years ago
- Get the gzipped size of a string or buffer☆173Updated 4 years ago
- Parse milliseconds into an object☆124Updated last year
- 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
- Use property paths (`a.b.c`) get a nested value from an object.☆293Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated 4 months ago
- Recursively omit empty properties from an object. Omits empty objects, arrays, strings, and optionally zero. Similar results to what you …☆73Updated 6 years ago
- Create an array of unique values, in order, from the input arrays☆78Updated 4 years ago
- Check if a string or buffer is SVG☆143Updated 7 months ago
- Find the closest package.json file☆166Updated 8 months ago
- Sort the keys of an object☆108Updated 5 months ago
- Compose promise-returning & async functions into a reusable pipeline☆126Updated 4 years ago
- Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.☆42Updated 2 years ago
- Detect the indentation of code☆201Updated last week
- Sort an array on an object property☆201Updated 4 months ago
- Lightweight querySelector/All wrapper that outputs an Array☆129Updated 2 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆112Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 5 months ago
- Wordwrap a string with ANSI escape codes☆131Updated 5 months ago
- string representations of objects in node and the browser☆160Updated last month
- Convert a string/Buffer/Uint8Array to a readable stream☆94Updated 3 years ago