@theholocron/string-utils 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +16 -17
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
//#region src/casing.d.ts
|
|
2
|
-
type CaseFn = (str: string) => string;
|
|
3
|
-
declare const toCamelCase: CaseFn;
|
|
4
|
-
declare const toConstantCase: CaseFn;
|
|
5
|
-
declare const toDotCase: CaseFn;
|
|
6
|
-
declare const toKebabCase: CaseFn;
|
|
7
|
-
declare const toLowerCase: (str: string) => string;
|
|
8
|
-
declare const toPascalCase: CaseFn;
|
|
9
|
-
declare const toPathCase: CaseFn;
|
|
10
|
-
declare const toSentenceCase: CaseFn;
|
|
11
|
-
declare const toSnakeCase: CaseFn;
|
|
12
|
-
declare const toTitleCase: CaseFn;
|
|
13
|
-
declare const toUpperCase: (str: string) => string;
|
|
2
|
+
export type CaseFn = (str: string) => string;
|
|
3
|
+
export declare const toCamelCase: CaseFn;
|
|
4
|
+
export declare const toConstantCase: CaseFn;
|
|
5
|
+
export declare const toDotCase: CaseFn;
|
|
6
|
+
export declare const toKebabCase: CaseFn;
|
|
7
|
+
export declare const toLowerCase: (str: string) => string;
|
|
8
|
+
export declare const toPascalCase: CaseFn;
|
|
9
|
+
export declare const toPathCase: CaseFn;
|
|
10
|
+
export declare const toSentenceCase: CaseFn;
|
|
11
|
+
export declare const toSnakeCase: CaseFn;
|
|
12
|
+
export declare const toTitleCase: CaseFn;
|
|
13
|
+
export declare const toUpperCase: (str: string) => string;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/casting.d.ts
|
|
16
|
-
declare const toArray: (str: string | string[]) => string[];
|
|
17
|
-
declare const toBoolean: (val: string | undefined) => val is "true";
|
|
16
|
+
export declare const toArray: (str: string | string[]) => string[];
|
|
17
|
+
export declare const toBoolean: (val: string | undefined) => val is "true";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/numbering.d.ts
|
|
20
|
-
declare function toPlural(count: number, singular: string, plural?: string): string;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { CaseFn, toArray, toBoolean, toCamelCase, toConstantCase, toDotCase, toKebabCase, toLowerCase, toPascalCase, toPathCase, toPlural, toSentenceCase, toSnakeCase, toTitleCase, toUpperCase };
|
|
20
|
+
export declare function toPlural(count: number, singular: string, plural?: string): string;
|
|
21
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/string-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Convert a string to any case or case to a different data type.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"string",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"title-case": "^4.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@theholocron/tsdown-config": "^
|
|
37
|
-
"@theholocron/vitest-config": "^
|
|
36
|
+
"@theholocron/tsdown-config": "^8.2.0",
|
|
37
|
+
"@theholocron/vitest-config": "^8.2.0",
|
|
38
38
|
"@tsconfig/node-lts": "^24.0.1",
|
|
39
39
|
"@types/node": "^26.2.0",
|
|
40
40
|
"@vitest/coverage-v8": "^4.1.10",
|
|
41
|
-
"tsdown": "^0.
|
|
41
|
+
"tsdown": "^0.23.0",
|
|
42
42
|
"vitest": "^4.1.10"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|