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 +69 -9
- package/dist/index.js +0 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,20 +1,80 @@
|
|
|
1
|
-
# π
|
|
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
|
|
10
|
-
- π Reverse proxies `https://your.custom.domain` β `
|
|
11
|
-
- π₯οΈ Works on
|
|
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
|
+
"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
|
+
}
|