locadot 1.2.3 β†’ 1.2.5

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,80 @@
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
+
26
+ ###### Starts a reverse proxy to the specified localhost port.
27
+
28
+ ```bash
29
+ npx locadot --host <custom.localhost> --port <localhost-port>
30
+ ```
31
+
32
+ ##### 🧾 View Registered Hosts
33
+
34
+ ###### Displays all domains currently registered with locadot.
35
+
36
+ ```bash
37
+ npx locadot host
38
+ ```
39
+
40
+ ##### πŸ“Ί Watch Logs
41
+
42
+ ###### Continuously watches and outputs proxy logs in real time.
43
+
44
+ ```bash
45
+ npx locadot log
46
+ ```
47
+
48
+ ##### 🧹 Clear Logs
49
+
50
+ ###### Clears all saved logs.
51
+
52
+ ```bash
53
+ npx locadot clear logs
54
+ ```
55
+
56
+ ##### πŸ”„ Restart Proxy
57
+
58
+ ###### Restarts the proxy server and reloads configuration.
59
+
60
+ ```bash
61
+ npx locadot restart
62
+ ```
63
+
64
+ ##### πŸ›‘ Stop All
65
+
66
+ ###### Stops all running locadot hosts and shuts down the proxy server.
67
+
68
+ ```bash
69
+ npx locadot stop
70
+ ```
71
+
72
+ ---
73
+
74
+ ### πŸ™Œ Contributing:
75
+
76
+ 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.
77
+
78
+ ---
79
+
80
+ ##### 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.5",
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
+ }