pty-serv 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # pty-serve
1
+ # pty-serv
2
2
 
3
3
  Spawns a command in a [node-pty](https://github.com/microsoft/node-pty) pseudo-terminal and exposes an HTTP endpoint to interact with it at runtime.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install -g pty-serve
8
+ npm install -g pty-serv
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -14,10 +14,10 @@ Run a shell, then send a command from another process:
14
14
 
15
15
  ```bash
16
16
  # Terminal 1 – start the PTY server
17
- pty-serve -s /tmp/pty-serve-0.sock -- bash
17
+ pty-serv -s /tmp/pty-serv-0.sock -- bash
18
18
 
19
19
  # Terminal 2 – interact with it
20
- curl --unix-socket /tmp/pty-serve-0.sock 'http://[::]/write' --data $'echo hello\r'
20
+ curl --unix-socket /tmp/pty-serv-0.sock 'http://[::]/write' --data $'echo hello\r'
21
21
  ```
22
22
 
23
23
  ### CLI Options
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pty-serv",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "git+https://github.com/gzzhanghao/node-pty-serve.git"
6
+ "url": "git+https://github.com/gzzhanghao/node-pty-serv.git"
7
7
  },
8
8
  "type": "module",
9
9
  "bin": {
10
- "pty-serve": "./dist/index.js"
10
+ "pty-serv": "./bin/index.js"
11
11
  },
12
12
  "files": [
13
13
  "bin",