@hamedb89/localghost 0.4.0 → 0.5.0

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.
@@ -132,6 +132,22 @@ Prints Localghost's project-local state file and setup readiness. Pass `--ready`
132
132
  localghost status --ready
133
133
  ```
134
134
 
135
+ Pass `--ports` to inspect remembered allocations, active Localghost leases, and ports used by active sessions without changing registry state. It also probes a bounded range for free ports; use `--from` and `--count` to control that range. Add `--json` for machine-readable output.
136
+
137
+ ```sh
138
+ localghost status --ports
139
+ localghost status --ports --from 3000 --count 5 --json
140
+ ```
141
+
142
+ ### test
143
+
144
+ Runs a test command with an isolated, dynamically selected Localghost port. Use a unique `--instance` value for parallel runs. The lease is renewed while the command runs and released when it exits.
145
+
146
+ ```sh
147
+ localghost test --instance smoke-1 -- npm test
148
+ localghost test --instance smoke-2 -- npm test
149
+ ```
150
+
135
151
  ### ps
136
152
 
137
153
  Shows Localghost `dev` and `run` sessions that are currently running on the machine. Stale records are pruned automatically when their wrapper process is gone. Each route also reports whether its upstream `127.0.0.1:<port>` is listening. Pass `--json` for menu bar helpers or other polling tools.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamedb89/localghost",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Friendly local hostnames for app repos with .localghost, Caddy, /etc/hosts, and Vite.",
5
5
  "type": "module",
6
6
  "bin": {