@expo/spawn-async

  • Version 1.8.0
  • Published
  • 28.3 kB
  • 1 dependency
  • MIT license

Install

npm i @expo/spawn-async
yarn add @expo/spawn-async
pnpm add @expo/spawn-async

Overview

A Promise-based interface into processes created by child_process.spawn

Index

Functions

function spawnAsync

spawnAsync: (
command: string,
args?: ReadonlyArray<string>,
options?: spawnAsync.SpawnOptions
) => spawnAsync.SpawnPromise<spawnAsync.SpawnResult>;

    Interfaces

    interface SpawnOptions

    interface SpawnOptions extends NodeSpawnOptions {}

      property ignoreStdio

      ignoreStdio?: boolean;

        property maxBuffer

        maxBuffer?: number;

          interface SpawnPromise

          interface SpawnPromise<T> extends Promise<T> {}

            property child

            child: ChildProcess;

              interface SpawnResult

              interface SpawnResult {}

                property output

                output: string[];

                  property pid

                  pid?: number;

                    property signal

                    signal: string | null;

                      property status

                      status: number | null;

                        property stderr

                        stderr: string;

                          property stdout

                          stdout: string;

                            Package Files (1)

                            Dependencies (1)

                            Dev Dependencies (6)

                            Peer Dependencies (0)

                            No peer dependencies.

                            Badge

                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@expo/spawn-async.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@expo/spawn-async)
                            • HTML
                              <a href="https://www.jsdocs.io/package/@expo/spawn-async"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>