locadot 1.2.3 β†’ 1.2.4

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,20 +1,76 @@
1
- # πŸ” locadot
2
-
3
- Secure your local development environment with **HTTPS** and **custom domains** like `https://dev.localhost`, powered by `mkcert`.
4
-
5
- ---
1
+ # locadot πŸ”
6
2
 
7
3
  ## ✨ Features
8
4
 
9
- - βœ… Automatically generates **trusted local SSL certificates**
10
- - πŸ” Reverse proxies `https://your.custom.domain` β†’ `app.localhost`
11
- - πŸ–₯️ Works on **Windows**, **macOS**, and **Linux**
5
+ - βœ… Automatically generates trusted local SSL certificates
6
+ - πŸ” Reverse proxies `https://your.custom.domain` β†’ `localhost:your-port`
7
+ - πŸ–₯️ Works on Windows, macOS, and Linux
12
8
  - πŸ› οΈ OS-specific guidance for host setup
13
9
  - ⚠️ Warns and exits if domain isn’t correctly mapped to a local IP
10
+ - ❌ Only supports proxying to localhost ports – external IPs are not allowed for security
14
11
 
15
12
  ---
16
13
 
17
14
  ## πŸš€ Usage
18
15
 
19
16
  ```bash
20
- npx locadot --host dev.localhost --port 3350
17
+ npx locadot --host dev.localhost --port 3350
18
+ ```
19
+
20
+ ---
21
+
22
+ ## πŸ“¦ Commands
23
+
24
+ ##### ▢️ Default (Run Proxy)
25
+ ###### Starts a reverse proxy to the specified localhost port.
26
+
27
+ ```bash
28
+ npx locadot --host <custom.localhost> --port <localhost-port>
29
+ ```
30
+
31
+ ##### 🧾 View Registered Hosts
32
+ ###### Displays all domains currently registered with locadot.
33
+
34
+
35
+ ```bash
36
+ npx locadot host
37
+ ```
38
+ ##### πŸ“Ί Watch Logs
39
+ ###### Continuously watches and outputs proxy logs in real time.
40
+
41
+
42
+ ```bash
43
+ npx locadot log
44
+ ```
45
+
46
+ ##### 🧹 Clear Logs
47
+ ###### Clears all saved logs.
48
+
49
+
50
+ ```bash
51
+ npx locadot clear logs
52
+ ```
53
+
54
+ ##### πŸ”„ Restart Proxy
55
+ ###### Restarts the proxy server and reloads configuration.
56
+
57
+ ```bash
58
+ npx locadot restart
59
+ ```
60
+
61
+ ##### πŸ›‘ Stop All
62
+ ###### Stops all running locadot hosts and shuts down the proxy server.
63
+
64
+
65
+ ```bash
66
+ npx locadot stop
67
+ ```
68
+ ---
69
+
70
+
71
+ ### πŸ™Œ Contributing:
72
+
73
+ Pull requests are welcome! Feel free to open issues for bugs or feature requests. Contributions help improve locadot for everyone, so don't hesitate to get involved.
74
+
75
+ ---
76
+ ##### Made with ❀️ to make secure local development simple.
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "locadot",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Secure your local development environment with HTTPS and custom domains like dev.localhost.",
5
5
  "homepage": "https://www.npmjs.com/package/locadot",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
8
  "locadot": "./dist/index.js"
9
9
  },
10
+ "scripts": {
11
+ "dev": "tsx --watch src/index.ts",
12
+ "build": "tsc"
13
+ },
10
14
  "repository": {
11
15
  "type": "git",
12
16
  "url": "git+https://github.com/avinashid/locadot.git"
@@ -38,9 +42,5 @@
38
42
  "devDependencies": {
39
43
  "tsx": "^4.19.3",
40
44
  "typescript": "^5.8.3"
41
- },
42
- "scripts": {
43
- "dev": "tsx --watch src/index.ts",
44
- "build": "tsc"
45
45
  }
46
- }
46
+ }