Child
Defined in: index.ts:297
2.0.0
new Child(
pid):Child
Defined in: index.ts:301
number
Child
pid:
number
Defined in: index.ts:299
The child process pid.
kill():
Promise<void>
Defined in: index.ts:336
Kills the child process.
Promise<void>
A promise indicating the success or failure of the operation.
2.0.0
write(
data):Promise<void>
Defined in: index.ts:322
Writes data to the stdin.
The message to write, either a string or a byte array.
IOPayload | number[]
Promise<void>
A promise indicating the success or failure of the operation.
import { Command } from '@tauri-apps/plugin-shell';const command = Command.create('node');const child = await command.spawn();await child.write('message');await child.write([0, 1, 2, 3, 4, 5]);2.0.0
© 2025 Tauri Contributors. CC-BY / MIT