@dbalabka/chrome-wsl 0.2.3 → 0.2.7
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 +32 -3
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -17,7 +17,9 @@ A small WSL helper to open Google Chrome on Windows with remote debugging (port
|
|
|
17
17
|
- Windows Chrome installed at `C:\Program Files\Google\Chrome\Application\chrome.exe` (adjust the path in the script if different).
|
|
18
18
|
- Network/apt access to install `socat` on first run (or preinstall manually).
|
|
19
19
|
|
|
20
|
-
## Usage
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### with NPX
|
|
21
23
|
```sh
|
|
22
24
|
npx @dbalabka/chrome-wsl
|
|
23
25
|
```
|
|
@@ -25,10 +27,37 @@ npx @dbalabka/chrome-wsl
|
|
|
25
27
|
- The script logs `socat` output to `/tmp/socat-9222.log`.
|
|
26
28
|
- To stop the `socat` forwarder:
|
|
27
29
|
```sh
|
|
28
|
-
npx @dbalabka/chrome-wsl --
|
|
30
|
+
npx @dbalabka/chrome-wsl --stop
|
|
29
31
|
```
|
|
30
32
|
- Runs directly via npm without cloning; default entrypoint is `chrome-wsl` (matching the package name).
|
|
31
|
-
|
|
33
|
+
|
|
34
|
+
#### Example
|
|
35
|
+
```sh
|
|
36
|
+
❯ npx @dbalabka/chrome-wsl
|
|
37
|
+
✅ Detected Windows host IP: 172.18.112.1
|
|
38
|
+
✅ Portproxy 172.18.112.1:9222 -> 127.0.0.1:9222 is configured.
|
|
39
|
+
✅ Firewall rule "Chrome Remote Debug" exists.
|
|
40
|
+
✅ socat is already installed.
|
|
41
|
+
✅ Started socat (logging to /tmp/socat-9222.log).
|
|
42
|
+
✅ Launched Chrome (pid 32408) with remote debugging.
|
|
43
|
+
✅ Chrome is listening on port 9222.
|
|
44
|
+
```
|
|
45
|
+
```sh
|
|
46
|
+
❯ npx @dbalabka/chrome-wsl --stop
|
|
47
|
+
✅ Stopped tracked Chrome process (pid 32408).
|
|
48
|
+
✅ Stopped socat forwarding for port 9222.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### with NPM
|
|
52
|
+
To install globally instead of npx:
|
|
53
|
+
```sh
|
|
54
|
+
npm install -g @dbalabka/chrome-wsl
|
|
55
|
+
```
|
|
56
|
+
Then run:
|
|
57
|
+
```sh
|
|
58
|
+
chrome-wsl
|
|
59
|
+
chrome-wsl --stop
|
|
60
|
+
```
|
|
32
61
|
|
|
33
62
|
## Notes
|
|
34
63
|
- Portproxy check expects forwarding from the detected Windows host IP to `127.0.0.1:9222`.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbalabka/chrome-wsl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "WSL helper to start Windows Chrome with remote debugging and socat port forwarding.",
|
|
5
|
-
"bin": "chrome-wsl",
|
|
5
|
+
"bin": "./chrome-wsl",
|
|
6
6
|
"files": [
|
|
7
7
|
"chrome-wsl",
|
|
8
8
|
"README.md",
|
|
@@ -18,11 +18,14 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/dbalabka/
|
|
21
|
+
"url": "git+https://github.com/dbalabka/chrome-wsl.git"
|
|
22
22
|
},
|
|
23
23
|
"author": "Dmitry Balabka",
|
|
24
24
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/dbalabka/
|
|
25
|
+
"url": "https://github.com/dbalabka/chrome-wsl/issues"
|
|
26
26
|
},
|
|
27
|
-
"homepage": "https://github.com/dbalabka/
|
|
27
|
+
"homepage": "https://github.com/dbalabka/chrome-wsl#readme",
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
}
|
|
28
31
|
}
|