# @types/npm-run

> TypeScript definitions for npm-run

Latest version **5.0.4** (published 2025-05-05) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 5.0.4 |
| Published | 2025-05-05 |
| First published | 2019-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 5.0.4 (latest) — 2025-05-05
- 5.0.3 (ts5.0) — 2023-11-07
- 5.0.0 (ts3.4) — 2019-06-14
- 5.0.2 — 2023-10-18
- 5.0.1 — 2023-09-23

## README

# Installation
> `npm install --save @types/npm-run`

# Summary
This package contains type definitions for npm-run (https://github.com/timoxley/npm-run).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-run.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-run/index.d.ts)
````ts
/// <reference types="node" />

import { exec, execSync, spawn, spawnSync } from "child_process";

type ExecFunction = typeof exec;

interface Runner extends ExecFunction {
    exec: ExecFunction;
    sync: typeof execSync;
    execSync: typeof execSync;
    spawnSync: typeof spawnSync;
    spawn: typeof spawn;
}

declare let npmRun: Runner;

export = npmRun;

````

### Additional Details
 * Last updated: Mon, 05 May 2025 19:02:21 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by .

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