has-ansi
Check if a string has ANSI escape codes
Check if a string has ANSI escape codes
Regular expression for matching IP addresses (IPv4 & IPv6)
Measure the difference between two strings using the Levenshtein distance algorithm
Return true if a file path contains the given path.
Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
Regular expression for matching HTML comments
Find the closest package.json file
Compare DNS record strings for equality
The best regular expression (regex) for matching hex color values from string.
Spec-compliant polyfill for String.prototype.matchAll
An easy-to-use wildcard globbing library.
A regex to match any full character, considering weird character ranges.
[![npm-version](https://img.shields.io/npm/v/levenary.svg)](https://www.npmjs.com/package/levenary) [![github-actions](https://github.com/tanhauhau/levenary/workflows/CI/badge.svg)](https://github.com/tanhauhau/levenary/actions)
Regular expression for matching semver versions
Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`
Returns true if a filepath is a windows UNC file path.
Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.
Extends `minimatch.match()` with support for multiple patterns
Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch.
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.