chill-with-you-core-v2 1.0.1

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Chill With You Core ☕
2
+
3
+ Core utilities for focus, pomodoro, and cozy productivity apps.
4
+
5
+ ## Install
6
+ ```bash
7
+ npm install chill-with-you-core
Binary file
package/index.js ADDED
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Chill With You – Core
3
+ * Simple utilities for focus & pomodoro
4
+ */
5
+
6
+ function startPomodoro(minutes = 25) {
7
+ if (typeof minutes !== "number" || minutes <= 0) {
8
+ throw new Error("Minutes must be a positive number");
9
+ }
10
+
11
+ return {
12
+ type: "pomodoro",
13
+ duration: minutes,
14
+ message: `Focus for ${minutes} minutes ☕`
15
+ };
16
+ }
17
+
18
+ function breakTime(minutes = 5) {
19
+ if (typeof minutes !== "number" || minutes <= 0) {
20
+ throw new Error("Minutes must be a positive number");
21
+ }
22
+
23
+ return {
24
+ type: "break",
25
+ duration: minutes,
26
+ message: `Relax for ${minutes} minutes 🌧️`
27
+ };
28
+ }
29
+
30
+ module.exports = {
31
+ startPomodoro,
32
+ breakTime
33
+ };
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "chill-with-you-core-v2",
3
+ "version": "1.0.1",
4
+ "description": "Core logic for Chill With You – cozy focus, lofi & pomodoro utilities",
5
+ "main": "index.js",
6
+ "keywords": [
7
+ "focus",
8
+ "lofi",
9
+ "pomodoro",
10
+ "productivity",
11
+ "chill"
12
+ ],
13
+ "author": "Rishabh",
14
+ "license": "MIT"
15
+ }