@types/cross-spawn
TypeScript definitions for cross-spawn
Last updated 6 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/cross-spawn 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 6.0.6                                ...           latest (2 years ago)
  • 6.0.1                                ...           ts2.0 (7 years ago)
  • 6.0.1                                ...           ts2.1 (7 years ago)
  • 6.0.1                                ...           ts2.2 (7 years ago)
  • 6.0.1                                ...           ts2.3 (7 years ago)
  • 6.0.1                                ...           ts2.4 (7 years ago)
  • 6.0.1                                ...           ts2.5 (7 years ago)
  • 6.0.1                                ...           ts2.6 (7 years ago)
  • 6.0.1                                ...           ts2.7 (7 years ago)
  • 6.0.1                                ...           ts2.8 (7 years ago)
  • 6.0.1                                ...           ts2.9 (7 years ago)
  • 6.0.2                                ...           ts3.0 (6 years ago)
  • 6.0.2                                ...           ts3.1 (6 years ago)
  • 6.0.2                                ...           ts3.2 (6 years ago)
  • 6.0.2                                ...           ts3.3 (6 years ago)
  • 6.0.2                                ...           ts3.4 (6 years ago)
  • 6.0.2                                ...           ts3.5 (6 years ago)
  • 6.0.2                                ...           ts3.6 (6 years ago)
  • 6.0.2                                ...           ts3.7 (6 years ago)
  • 6.0.2                                ...           ts3.8 (6 years ago)
  • 6.0.2                                ...           ts3.9 (6 years ago)
  • 6.0.2                                ...           ts4.0 (6 years ago)
  • 6.0.2                                ...           ts4.1 (6 years ago)
  • 6.0.2                                ...           ts4.2 (6 years ago)
  • 6.0.3                                ...           ts4.3 (3 years ago)
  • 6.0.3                                ...           ts4.4 (3 years ago)
  • 6.0.6                                ...           ts4.5 (2 years ago)
  • 6.0.6                                ...           ts4.6 (2 years ago)
  • 6.0.6                                ...           ts4.7 (2 years ago)
  • 6.0.6                                ...           ts4.8 (2 years ago)
  • 6.0.6                                ...           ts4.9 (2 years ago)
  • 6.0.6                                ...           ts5.0 (2 years ago)
  • 6.0.6                                ...           ts5.1 (2 years ago)
  • 6.0.6                                ...           ts5.2 (2 years ago)
  • 6.0.6                                ...           ts5.3 (2 years ago)
  • 6.0.6                                ...           ts5.4 (2 years ago)
  • 6.0.6                                ...           ts5.5 (2 years ago)
  • 6.0.6                                ...           ts5.6 (2 years ago)
  • 6.0.6                                ...           ts5.7 (2 years ago)

7 Versions

  • 6.0.6                                ...           2 years ago
  • 6.0.5                                ...           2 years ago
  • 6.0.4                                ...           2 years ago
  • 6.0.3                                ...           3 years ago
  • 6.0.2                                ...           6 years ago
  • 6.0.1                                ...           7 years ago
  • 6.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |