unsleep 1.1.0 → 1.1.2

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 CHANGED
@@ -1,13 +1,76 @@
1
1
  # unsleep
2
2
 
3
- It is a tool to move your mouse to prevent your computer from sleeping.
3
+ A simple utility tool to prevent your computer from sleeping by simulating mouse movements and clicks.
4
4
 
5
- ## How to install
5
+ ## Installation
6
6
 
7
7
  ```sh
8
+ # Install globally
8
9
  npm install -g unsleep
9
- # or by using npx
10
+
11
+ # Or use directly with npx without installing
10
12
  npx unsleep
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```sh
18
+ unsleep [options]
19
+ ```
20
+
21
+ ### Options
22
+
23
+ | Option | Description |
24
+ | -------------------------------- | --------------------------------------------------- |
25
+ | `-V, --version` | Output the version number |
26
+ | `-a, --autoclick` | Enable auto clicker |
27
+ | `-ad, --autoclick-delay <value>` | Delay between auto clicks in ms |
28
+ | `-m, --mouse` | Enable mouse movement |
29
+ | `-md, --mouse-delay <value>` | Delay between mouse movements in ms (default: 5000) |
30
+ | `-h, --help` | Display help information |
11
31
 
12
- unsleep -h
32
+ ## Examples
33
+
34
+ Basic usage (default mouse movement every 5 seconds):
35
+
36
+ ```sh
37
+ unsleep
38
+ ```
39
+
40
+ Enable auto clicking (short and long form):
41
+
42
+ ```sh
43
+ unsleep -a
44
+ unsleep --autoclick
13
45
  ```
46
+
47
+ Set custom delay for mouse movements (short and long form):
48
+
49
+ ```sh
50
+ unsleep -m -md 10000 # Move mouse every 10 seconds
51
+ unsleep --mouse --mouse-delay 10000
52
+ ```
53
+
54
+ Enable auto clicking with custom delay (short and long form):
55
+
56
+ ```sh
57
+ unsleep -a -ad 3000 # Click every 3 seconds
58
+ unsleep --autoclick --autoclick-delay 3000
59
+ ```
60
+
61
+ Combined options (short and long form):
62
+
63
+ ```sh
64
+ unsleep -m -md 8000 -a -ad 5000
65
+ unsleep --mouse --mouse-delay 8000 --autoclick --autoclick-delay 5000
66
+ ```
67
+
68
+ ## Why use unsleep?
69
+
70
+ - Keep your computer awake during long downloads
71
+ - Prevent screen locking during presentations
72
+ - Bypass inactivity timeouts on various applications
73
+
74
+ ## License
75
+
76
+ MIT
package/build/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ #!/usr/bin/env node
1
2
  export {};
package/build/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unsleep",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "author": "maxgfr",
5
5
  "license": "MIT",
6
6
  "description": "Tool to move your mouse to prevent your computer from sleeping",
@@ -49,24 +49,24 @@
49
49
  "@semantic-release/github": "^9.0.0",
50
50
  "@semantic-release/npm": "^9.0.1",
51
51
  "@semantic-release/release-notes-generator": "^12.0.0",
52
- "@swc-node/register": "1.10.10",
53
- "@swc/cli": "0.6.0",
54
- "@swc/core": "1.11.16",
55
- "@swc/jest": "0.2.37",
52
+ "@swc-node/register": "1.11.1",
53
+ "@swc/cli": "0.7.9",
54
+ "@swc/core": "1.15.3",
55
+ "@swc/jest": "0.2.39",
56
56
  "@types/commander": "^2.12.2",
57
57
  "@types/jest": "29.5.14",
58
- "@types/node": "20.17.30",
58
+ "@types/node": "20.19.25",
59
59
  "@typescript-eslint/eslint-plugin": "6.21.0",
60
60
  "@typescript-eslint/parser": "6.21.0",
61
61
  "@yao-pkg/pkg": "^5.12.1",
62
62
  "eslint": "8.57.1",
63
- "eslint-config-prettier": "9.1.0",
63
+ "eslint-config-prettier": "9.1.2",
64
64
  "eslint-plugin-jest": "27.9.0",
65
65
  "jest": "29.7.0",
66
- "nodemon": "3.1.9",
67
- "prettier": "3.5.3",
66
+ "nodemon": "3.1.11",
67
+ "prettier": "3.7.4",
68
68
  "rimraf": "5.0.10",
69
69
  "semantic-release": "22.0.12",
70
- "typescript": "5.8.2"
70
+ "typescript": "5.9.3"
71
71
  }
72
72
  }