You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package supports all original APIs from [@homebridge/node-pty-prebuilt-multiarch](https://github.com/homebridge/node-pty-prebuilt-multiarch).
124
+
125
+
### Extended API
126
+
127
+
We've added the following new API on top of the original ones:
128
+
129
+
#### init()
130
+
131
+
The `init()` method checks if the prebuilt binary is compatible with the current Node.js/Electron environment. This method is optional and is mainly useful in the following scenarios:
132
+
133
+
- After switching Node.js or Electron versions, to verify compatibility
134
+
- When you need to reinstall binaries compatible with the current environment
135
+
136
+
> Tip: If you don't want to call the init() method, you can also directly run `npx pty` to reinstall binaries compatible with the current environment.
0 commit comments