@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/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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.26.16",
3
+ "version": "0.26.18",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",