@types/cross-spawn
TypeScript icon, indicating that this package has built-in type declarations

6.0.6 • Public • Published

Installation

npm install --save @types/cross-spawn

Summary

This package contains type definitions for cross-spawn (https://github.com/moxystudio/node-cross-spawn).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cross-spawn.

index.d.ts

/// <reference types="node" />

import * as child_process from "child_process";

declare namespace spawn {
    /**
     * The `spawn()` method spawns a new process using the given `command`, with
     * command line arguments in `args`. If omitted, `args` defaults to an empty array.
     */
    const spawn: typeof child_process.spawn;

    /**
     * The `spawn.sync()` method spawns a new process using the given `command`, with
     * command line arguments in `args`. If omitted, `args` defaults to an empty array.
     */
    const sync: typeof child_process.spawnSync;
}

/**
 * The `spawn()` method spawns a new process using the given `command`, with
 * command line arguments in `args`. If omitted, `args` defaults to an empty array.
 */
declare function spawn(command: string, options: child_process.SpawnOptions): child_process.ChildProcess;
declare function spawn(
    command: string,
    args?: readonly string[],
    options?: child_process.SpawnOptions,
): child_process.ChildProcess;

export = spawn;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Alorel, and ExE Boss.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 6.0.6
    2,073,100
  • 6.0.5
    124,784
  • 6.0.4
    131,225
  • 6.0.3
    310,123
  • 6.0.2
    810,790
  • 6.0.1
    8,270
  • 6.0.0
    20,239

Package Sidebar

Install

npm i @types/cross-spawn

Weekly Downloads

2,812,334

Version

6.0.6

License

MIT

Unpacked Size

4.85 kB

Total Files

5

Last publish

Collaborators

  • types