@tauri-apps/plugin-shell - v2.3.0
    Preparing search index...

    Class Child

    2.0.0

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    pid: number

    The child process pid.

    Methods

    • Writes data to the stdin.

      Parameters

      • data: IOPayload | number[]

        The message to write, either a string or a byte array.

      Returns 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

    • Kills the child process.

      Returns Promise<void>

      A promise indicating the success or failure of the operation.

      2.0.0