pinokiojs
v0.0.9
Published
Interact with Pinokio over WebSocket, using JavaScript.
Downloads
3
Readme
Pinokio.js
Interact with Pinokio over WebSocket, using JavaScript.
API
shell
: access to the pinokio shellfs
: acccess to the pinokio file systemport()
: get an available port
1. Shell
const pinokio = new Pinokio()
const shell = pinokio.shell()
await shell.run({
uri: ...
}, (packet) => {
// realtime packet
})
2. FS
const fs = pinokio.fs("https://github.com/cocktailpeanut/automatic1111.pinokio.git")
await fs.writeFile(...)
3. port()
const available_port = await pinokio.port()