@ztimson/utils 0.26.16 → 0.26.18
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.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/dist/string.d.ts +6 -0
- package/package.json +1 -1
package/dist/string.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export declare function camelCase(str?: string): string;
|
|
|
26
26
|
* @return {string} Formated size
|
|
27
27
|
*/
|
|
28
28
|
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
29
|
+
/**
|
|
30
|
+
* Convert milliseconds to human-readable duration
|
|
31
|
+
* @param {string} ms milliseconds
|
|
32
|
+
* @return {string} formated duration
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatMs(ms: number): string;
|
|
29
35
|
/**
|
|
30
36
|
* Extract numbers from a string & create a formated phone number: +1 (123) 456-7890
|
|
31
37
|
*
|