universe-code 0.0.11 → 0.0.12

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.
@@ -0,0 +1 @@
1
+ export * from './time.js';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Converts minutes to milliseconds
3
+ * @param {number} minutes
4
+ * @returns {number} milliseconds
5
+ */
6
+ export const minutesToMs = (minutes) => minutes * 60 * 1000;
7
+
8
+ /**
9
+ * Converts hours to milliseconds
10
+ * @param {number} hours
11
+ * @returns {number} milliseconds
12
+ */
13
+ export const hoursToMs = (hours) => hours * 60 * 60 * 1000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universe-code",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Universal utility functions for all JS frameworks",
5
5
  "license": "ISC",
6
6
  "type": "module",