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 +7 -0
- package/chill-with-you-core-1.0.0.tgz +0 -0
- package/index.js +33 -0
- package/package.json +15 -0
package/README.md
ADDED
|
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
|
+
}
|