+68
-8
@@ -377,18 +377,77 @@ /** | ||
| type UpperChars = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z'; | ||
| type LowerChars = Lowercase<UpperChars>; | ||
| type UpperLetters = [ | ||
| 'A', | ||
| 'B', | ||
| 'C', | ||
| 'D', | ||
| 'E', | ||
| 'F', | ||
| 'G', | ||
| 'H', | ||
| 'I', | ||
| 'J', | ||
| 'K', | ||
| 'L', | ||
| 'M', | ||
| 'N', | ||
| 'O', | ||
| 'P', | ||
| 'Q', | ||
| 'R', | ||
| 'S', | ||
| 'T', | ||
| 'U', | ||
| 'V', | ||
| 'W', | ||
| 'X', | ||
| 'Y', | ||
| 'Z' | ||
| ]; | ||
| type UpperLetter = UpperLetters[number]; | ||
| type LowerLetters = [ | ||
| 'a', | ||
| 'b', | ||
| 'c', | ||
| 'd', | ||
| 'e', | ||
| 'f', | ||
| 'g', | ||
| 'h', | ||
| 'i', | ||
| 'j', | ||
| 'k', | ||
| 'l', | ||
| 'm', | ||
| 'n', | ||
| 'o', | ||
| 'p', | ||
| 'q', | ||
| 'r', | ||
| 's', | ||
| 't', | ||
| 'u', | ||
| 'v', | ||
| 'w', | ||
| 'x', | ||
| 'y', | ||
| 'z' | ||
| ]; | ||
| type LowerLetter = LowerLetters[number]; | ||
| type Letters = [...LowerLetters, ...UpperLetters]; | ||
| type Letter = LowerLetter | UpperLetter; | ||
| /** | ||
| * Checks if the given character is an upper case letter. | ||
| */ | ||
| type IsUpper<T extends string> = IsStringLiteral<T> extends true ? T extends UpperChars ? true : false : boolean; | ||
| type IsUpper<T extends string> = IsStringLiteral<T> extends true ? T extends UpperLetter ? true : false : boolean; | ||
| /** | ||
| * Checks if the given character is a lower case letter. | ||
| */ | ||
| type IsLower<T extends string> = IsStringLiteral<T> extends true ? T extends LowerChars ? true : false : boolean; | ||
| type IsLower<T extends string> = IsStringLiteral<T> extends true ? T extends LowerLetter ? true : false : boolean; | ||
| /** | ||
| * Checks if the given character is a letter. | ||
| */ | ||
| type IsLetter<T extends string> = IsStringLiteral<T> extends true ? T extends LowerChars | UpperChars ? true : false : boolean; | ||
| type IsLetter<T extends string> = IsStringLiteral<T> extends true ? T extends Letter ? true : false : boolean; | ||
| type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'; | ||
| type Digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; | ||
| type Digit = Digits[number]; | ||
| /** | ||
@@ -400,3 +459,4 @@ * Checks if the given character is a number. | ||
| declare const SEPARATORS: readonly ["[", "]", "{", "}", "(", ")", "|", "/", "-", "\\", " ", "_", "."]; | ||
| type Separator = (typeof SEPARATORS)[number]; | ||
| type Separators = typeof SEPARATORS; | ||
| type Separator = Separators[number]; | ||
| /** | ||
@@ -837,2 +897,2 @@ * Checks if the given character is a separator. | ||
| export { type CamelCase, type CamelKeys, type CharAt, type Concat, type ConstantCase, type ConstantKeys, type DeepCamelKeys, type DeepConstantKeys, type DeepDelimiterKeys, type DeepKebabKeys, type DeepPascalKeys, type DeepSnakeKeys, type DelimiterCase, type DelimiterKeys, type EndsWith, type Includes, type IsDigit, type IsLetter, type IsLower, type IsSeparator, type IsSpecial, type IsUpper, type Join, type KebabCase, type KebabKeys, type Length, type PadEnd, type PadStart, type PascalCase, type PascalKeys, type Repeat, type Replace, type ReplaceAll, type ReplaceKeys, type Reverse, type Slice, type SnakeCase, type SnakeKeys, type Split, type StartsWith, type TitleCase, type Trim, type TrimEnd, type TrimStart, type Truncate, type Words, camelCase, camelKeys, capitalize, charAt, concat, constantCase, constantKeys, deepCamelKeys, deepConstantKeys, deepDelimiterKeys, deepKebabKeys, deepPascalKeys, deepSnakeKeys, deepTransformKeys, delimiterCase, delimiterKeys, endsWith, includes, join, kebabCase, kebabKeys, length, lowerCase, padEnd, padStart, pascalCase, pascalKeys, repeat, replace, replaceAll, replaceKeys, reverse, slice, snakeCase, snakeKeys, split, startsWith, titleCase, toCamelCase, toConstantCase, toDelimiterCase, toKebabCase, toLowerCase, toPascalCase, toSnakeCase, toTitleCase, toUpperCase, trim, trimEnd, trimStart, truncate, uncapitalize, upperCase, words }; | ||
| export { type CamelCase, type CamelKeys, type CharAt, type Concat, type ConstantCase, type ConstantKeys, type DeepCamelKeys, type DeepConstantKeys, type DeepDelimiterKeys, type DeepKebabKeys, type DeepPascalKeys, type DeepSnakeKeys, type DelimiterCase, type DelimiterKeys, type Digit, type Digits, type EndsWith, type Includes, type IsDigit, type IsLetter, type IsLower, type IsSeparator, type IsSpecial, type IsUpper, type Join, type KebabCase, type KebabKeys, type Length, type Letter, type Letters, type LowerLetter, type LowerLetters, type PadEnd, type PadStart, type PascalCase, type PascalKeys, type Repeat, type Replace, type ReplaceAll, type ReplaceKeys, type Reverse, type Separator, type Separators, type Slice, type SnakeCase, type SnakeKeys, type Split, type StartsWith, type TitleCase, type Trim, type TrimEnd, type TrimStart, type Truncate, type UpperLetter, type UpperLetters, type Words, camelCase, camelKeys, capitalize, charAt, concat, constantCase, constantKeys, deepCamelKeys, deepConstantKeys, deepDelimiterKeys, deepKebabKeys, deepPascalKeys, deepSnakeKeys, deepTransformKeys, delimiterCase, delimiterKeys, endsWith, includes, join, kebabCase, kebabKeys, length, lowerCase, padEnd, padStart, pascalCase, pascalKeys, repeat, replace, replaceAll, replaceKeys, reverse, slice, snakeCase, snakeKeys, split, startsWith, titleCase, toCamelCase, toConstantCase, toDelimiterCase, toKebabCase, toLowerCase, toPascalCase, toSnakeCase, toTitleCase, toUpperCase, trim, trimEnd, trimStart, truncate, uncapitalize, upperCase, words }; |
+68
-8
@@ -377,18 +377,77 @@ /** | ||
| type UpperChars = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z'; | ||
| type LowerChars = Lowercase<UpperChars>; | ||
| type UpperLetters = [ | ||
| 'A', | ||
| 'B', | ||
| 'C', | ||
| 'D', | ||
| 'E', | ||
| 'F', | ||
| 'G', | ||
| 'H', | ||
| 'I', | ||
| 'J', | ||
| 'K', | ||
| 'L', | ||
| 'M', | ||
| 'N', | ||
| 'O', | ||
| 'P', | ||
| 'Q', | ||
| 'R', | ||
| 'S', | ||
| 'T', | ||
| 'U', | ||
| 'V', | ||
| 'W', | ||
| 'X', | ||
| 'Y', | ||
| 'Z' | ||
| ]; | ||
| type UpperLetter = UpperLetters[number]; | ||
| type LowerLetters = [ | ||
| 'a', | ||
| 'b', | ||
| 'c', | ||
| 'd', | ||
| 'e', | ||
| 'f', | ||
| 'g', | ||
| 'h', | ||
| 'i', | ||
| 'j', | ||
| 'k', | ||
| 'l', | ||
| 'm', | ||
| 'n', | ||
| 'o', | ||
| 'p', | ||
| 'q', | ||
| 'r', | ||
| 's', | ||
| 't', | ||
| 'u', | ||
| 'v', | ||
| 'w', | ||
| 'x', | ||
| 'y', | ||
| 'z' | ||
| ]; | ||
| type LowerLetter = LowerLetters[number]; | ||
| type Letters = [...LowerLetters, ...UpperLetters]; | ||
| type Letter = LowerLetter | UpperLetter; | ||
| /** | ||
| * Checks if the given character is an upper case letter. | ||
| */ | ||
| type IsUpper<T extends string> = IsStringLiteral<T> extends true ? T extends UpperChars ? true : false : boolean; | ||
| type IsUpper<T extends string> = IsStringLiteral<T> extends true ? T extends UpperLetter ? true : false : boolean; | ||
| /** | ||
| * Checks if the given character is a lower case letter. | ||
| */ | ||
| type IsLower<T extends string> = IsStringLiteral<T> extends true ? T extends LowerChars ? true : false : boolean; | ||
| type IsLower<T extends string> = IsStringLiteral<T> extends true ? T extends LowerLetter ? true : false : boolean; | ||
| /** | ||
| * Checks if the given character is a letter. | ||
| */ | ||
| type IsLetter<T extends string> = IsStringLiteral<T> extends true ? T extends LowerChars | UpperChars ? true : false : boolean; | ||
| type IsLetter<T extends string> = IsStringLiteral<T> extends true ? T extends Letter ? true : false : boolean; | ||
| type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'; | ||
| type Digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; | ||
| type Digit = Digits[number]; | ||
| /** | ||
@@ -400,3 +459,4 @@ * Checks if the given character is a number. | ||
| declare const SEPARATORS: readonly ["[", "]", "{", "}", "(", ")", "|", "/", "-", "\\", " ", "_", "."]; | ||
| type Separator = (typeof SEPARATORS)[number]; | ||
| type Separators = typeof SEPARATORS; | ||
| type Separator = Separators[number]; | ||
| /** | ||
@@ -837,2 +897,2 @@ * Checks if the given character is a separator. | ||
| export { type CamelCase, type CamelKeys, type CharAt, type Concat, type ConstantCase, type ConstantKeys, type DeepCamelKeys, type DeepConstantKeys, type DeepDelimiterKeys, type DeepKebabKeys, type DeepPascalKeys, type DeepSnakeKeys, type DelimiterCase, type DelimiterKeys, type EndsWith, type Includes, type IsDigit, type IsLetter, type IsLower, type IsSeparator, type IsSpecial, type IsUpper, type Join, type KebabCase, type KebabKeys, type Length, type PadEnd, type PadStart, type PascalCase, type PascalKeys, type Repeat, type Replace, type ReplaceAll, type ReplaceKeys, type Reverse, type Slice, type SnakeCase, type SnakeKeys, type Split, type StartsWith, type TitleCase, type Trim, type TrimEnd, type TrimStart, type Truncate, type Words, camelCase, camelKeys, capitalize, charAt, concat, constantCase, constantKeys, deepCamelKeys, deepConstantKeys, deepDelimiterKeys, deepKebabKeys, deepPascalKeys, deepSnakeKeys, deepTransformKeys, delimiterCase, delimiterKeys, endsWith, includes, join, kebabCase, kebabKeys, length, lowerCase, padEnd, padStart, pascalCase, pascalKeys, repeat, replace, replaceAll, replaceKeys, reverse, slice, snakeCase, snakeKeys, split, startsWith, titleCase, toCamelCase, toConstantCase, toDelimiterCase, toKebabCase, toLowerCase, toPascalCase, toSnakeCase, toTitleCase, toUpperCase, trim, trimEnd, trimStart, truncate, uncapitalize, upperCase, words }; | ||
| export { type CamelCase, type CamelKeys, type CharAt, type Concat, type ConstantCase, type ConstantKeys, type DeepCamelKeys, type DeepConstantKeys, type DeepDelimiterKeys, type DeepKebabKeys, type DeepPascalKeys, type DeepSnakeKeys, type DelimiterCase, type DelimiterKeys, type Digit, type Digits, type EndsWith, type Includes, type IsDigit, type IsLetter, type IsLower, type IsSeparator, type IsSpecial, type IsUpper, type Join, type KebabCase, type KebabKeys, type Length, type Letter, type Letters, type LowerLetter, type LowerLetters, type PadEnd, type PadStart, type PascalCase, type PascalKeys, type Repeat, type Replace, type ReplaceAll, type ReplaceKeys, type Reverse, type Separator, type Separators, type Slice, type SnakeCase, type SnakeKeys, type Split, type StartsWith, type TitleCase, type Trim, type TrimEnd, type TrimStart, type Truncate, type UpperLetter, type UpperLetters, type Words, camelCase, camelKeys, capitalize, charAt, concat, constantCase, constantKeys, deepCamelKeys, deepConstantKeys, deepDelimiterKeys, deepKebabKeys, deepPascalKeys, deepSnakeKeys, deepTransformKeys, delimiterCase, delimiterKeys, endsWith, includes, join, kebabCase, kebabKeys, length, lowerCase, padEnd, padStart, pascalCase, pascalKeys, repeat, replace, replaceAll, replaceKeys, reverse, slice, snakeCase, snakeKeys, split, startsWith, titleCase, toCamelCase, toConstantCase, toDelimiterCase, toKebabCase, toLowerCase, toPascalCase, toSnakeCase, toTitleCase, toUpperCase, trim, trimEnd, trimStart, truncate, uncapitalize, upperCase, words }; |
+14
-5
| { | ||
| "name": "string-ts", | ||
| "version": "2.3.0-experimental.4", | ||
| "version": "2.3.0", | ||
| "description": "Strongly-typed string functions.", | ||
@@ -32,3 +32,5 @@ "author": "Gustavo Guichard <@gugaguichard>", | ||
| "*": { | ||
| "native": ["dist/native.d.ts"] | ||
| "native": [ | ||
| "dist/native.d.ts" | ||
| ] | ||
| } | ||
@@ -45,3 +47,6 @@ }, | ||
| }, | ||
| "files": ["README.md", "./dist/*"], | ||
| "files": [ | ||
| "README.md", | ||
| "./dist/*" | ||
| ], | ||
| "repository": { | ||
@@ -56,4 +61,8 @@ "type": "git", | ||
| "pnpm": { | ||
| "onlyBuiltDependencies": ["@biomejs/biome", "esbuild"] | ||
| } | ||
| "onlyBuiltDependencies": [ | ||
| "@biomejs/biome", | ||
| "esbuild" | ||
| ] | ||
| }, | ||
| "packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184" | ||
| } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
133022
1.18%1529
4.16%1
-50%