pty-serv 0.1.2 → 0.1.3

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 +1 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,19 +2,13 @@
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
- ## Installation
6
-
7
- ```bash
8
- npm install -g pty-serv
9
- ```
10
-
11
5
  ## Usage
12
6
 
13
7
  Run a shell, then send a command from another process:
14
8
 
15
9
  ```bash
16
10
  # Terminal 1 – start the PTY server
17
- pty-serv -s /tmp/pty-serv-0.sock -- bash
11
+ npx pty-serv -s /tmp/pty-serv-0.sock -- bash
18
12
 
19
13
  # Terminal 2 – interact with it
20
14
  curl --unix-socket /tmp/pty-serv-0.sock 'http://[::]/write' --data $'echo hello\r'
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pty-serv",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/gzzhanghao/node-pty-serv.git"
7
7
  },
8
8
  "type": "module",
9
9
  "bin": {
10
- "pty-serv": "./bin/index.js"
10
+ "pty-serv": "./bin/cli.js"
11
11
  },
12
12
  "files": [
13
13
  "bin",