GHHG10's picture
download
raw
567 Bytes
import { spawn as create } from "bun-pty"
import type { Opts, Proc } from "./pty"
export type { Disp, Exit, Opts, Proc } from "./pty"
export function spawn(file: string, args: string[], opts: Opts): Proc {
const pty = create(file, args, opts)
return {
pid: pty.pid,
onData(listener) {
return pty.onData(listener)
},
onExit(listener) {
return pty.onExit(listener)
},
write(data) {
pty.write(data)
},
resize(cols, rows) {
pty.resize(cols, rows)
},
kill(signal) {
pty.kill(signal)
},
}
}

Xet Storage Details

Size:
567 Bytes
·
Xet hash:
b9467177dceb5dee80e25652aafa89bbb1ec1591565a14dff824e0038f170796

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.