@ztimson/utils 0.26.18 → 0.26.19
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/string.d.ts +2 -1
- package/package.json +1 -1
package/dist/string.d.ts
CHANGED
|
@@ -29,9 +29,10 @@ export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
|
29
29
|
/**
|
|
30
30
|
* Convert milliseconds to human-readable duration
|
|
31
31
|
* @param {string} ms milliseconds
|
|
32
|
+
* @param {boolean} short Use unit initial instead of word
|
|
32
33
|
* @return {string} formated duration
|
|
33
34
|
*/
|
|
34
|
-
export declare function formatMs(ms: number): string;
|
|
35
|
+
export declare function formatMs(ms: number, short?: boolean): string;
|
|
35
36
|
/**
|
|
36
37
|
* Extract numbers from a string & create a formated phone number: +1 (123) 456-7890
|
|
37
38
|
*
|