• Version 1.7.2
  • Published
  • 14.5 kB
  • 1 dependency
  • MIT license


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


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



function spawnAsync

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


    interface SpawnOptions

    interface SpawnOptions extends NodeSpawnOptions {}

      property ignoreStdio

      ignoreStdio?: boolean;

        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.


                          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
                          • 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>