GHHG10's picture
download
raw
575 Bytes
import * as pty from "@lydell/node-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 proc = pty.spawn(file, args, opts)
return {
pid: proc.pid,
onData(listener) {
return proc.onData(listener)
},
onExit(listener) {
return proc.onExit(listener)
},
write(data) {
proc.write(data)
},
resize(cols, rows) {
proc.resize(cols, rows)
},
kill(signal) {
proc.kill(signal)
},
}
}

Xet Storage Details

Size:
575 Bytes
·
Xet hash:
6bae5df6f700a7ef1939bd0b8c56a6c91875a3d9883b1bfa3069c1d9e4da9037

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