@ztimson/utils 0.25.7 → 0.25.9
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/database.d.ts +17 -6
- package/dist/index.cjs +75 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +76 -22
- package/dist/index.mjs.map +1 -1
- package/dist/string.d.ts +5 -1
- package/package.json +1 -1
package/dist/string.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare function insertAt(target: string, str: string, index: number): St
|
|
|
52
52
|
/**
|
|
53
53
|
* Converts text to kebab-case
|
|
54
54
|
*/
|
|
55
|
-
export declare function kebabCase(str
|
|
55
|
+
export declare function kebabCase(str?: string): string;
|
|
56
56
|
/**
|
|
57
57
|
* Add padding to string
|
|
58
58
|
*
|
|
@@ -166,6 +166,10 @@ export declare function parseUrl(url: string): ParsedUrl;
|
|
|
166
166
|
* @returns {string} Hashed string
|
|
167
167
|
*/
|
|
168
168
|
export declare function md5(d: string): string;
|
|
169
|
+
/**
|
|
170
|
+
* Splits a string into logical word segments
|
|
171
|
+
*/
|
|
172
|
+
export declare function wordSegments(str?: string): string[];
|
|
169
173
|
/**
|
|
170
174
|
* Check if email is valid
|
|
171
175
|
*
|