node-pty 1.1.0-beta4 → 1.1.0-beta5
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 +4 -4
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ The full API for node-pty is contained within the [TypeScript declaration file](
|
|
|
18
18
|
## Example Usage
|
|
19
19
|
|
|
20
20
|
```js
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
import * as os from 'node:os';
|
|
22
|
+
import * as pty from 'node-pty';
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
const ptyProcess = pty.spawn(shell, [], {
|
|
27
27
|
name: 'xterm-color',
|
|
28
28
|
cols: 80,
|
|
29
29
|
rows: 30,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Microsoft Corporation"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.1.0-
|
|
7
|
+
"version": "1.1.0-beta5",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"main": "./lib/index.js",
|
|
10
10
|
"types": "./typings/node-pty.d.ts",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"cross-env": "^5.1.4",
|
|
54
54
|
"eslint": "^6.8.0",
|
|
55
55
|
"mocha": "10",
|
|
56
|
+
"node-gyp": "^9.4.0",
|
|
56
57
|
"ps-list": "^6.0.0",
|
|
57
58
|
"typescript": "^3.8.3"
|
|
58
59
|
}
|