# @types/cross-spawn

> TypeScript definitions for cross-spawn

Latest version **6.0.6** (published 2023-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/cross-spawn
pnpm add @types/cross-spawn
yarn add @types/cross-spawn
bun add @types/cross-spawn
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 6.0.6 |
| Published | 2023-11-20 |
| First published | 2018-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51436 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/cross-spawn
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cross-spawn
- npm.io page: https://npm.io/package/@types/cross-spawn

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 6.0.6 (latest) — 2023-11-20
- 6.0.3 (ts4.3) — 2023-09-04
- 6.0.2 (ts3.0) — 2020-05-15
- 6.0.1 (ts2.0) — 2019-10-04
- 6.0.5 — 2023-11-07
- 6.0.4 — 2023-10-18
- 6.0.0 — 2018-01-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cross-spawn/index.d.ts)
````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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Alorel](https://github.com/Alorel), and [ExE Boss](https://github.com/ExE-Boss).

---
_Source: https://npm.io/package/@types/cross-spawn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
