The child process pid.
pid
Kills the child process.
A promise indicating the success or failure of the operation.
2.0.0
Writes data to the stdin.
data
stdin
The message to write, either a string or a byte array.
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]); Copy
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]);
The child process
pid
.