27 packages found
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
- bash
- date
- expand
- expansion
- expression
- glob
- match
- match date
- match number
- match numbers
- match year
- matches
- matching
- number
- View more
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch.
Return a regular expression to match a decimal number.
check if string is a phone number
Count the words in a string. Support for english, CJK and Cyrillic.
javascript String Object prototype extend
Get the line number for each regex match found in a string.
A set of misc utilties I find myself repeatedly re-writing between projects.
Wrapper for [braces] to enable brace expansion for arrays of patterns.
🇿🇦 Perform regex and checksum match to check if given number string is a valid South African ID
No dependency pattern matching library, able to work with numbers, arrays, strings, Dates or objects
- match
- matchto
- object
- string
- Date
- array
- pattern
- matching
- matches
- patterns
- pattern matching
- match statement
- compare
- comparison
- View more
This packet creates a schedule based on the specified number of players.
Check if a string is a valid E. 164 phone number
JavaScript utilities for arrays.
Counts the number of unordered word matches in two strings
Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.
Determine if a single match exists with an array of strings/numbers/regexes.