# @types/node-cmd

> TypeScript definitions for node-cmd

Latest version **5.0.0** (published 2024-07-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2024-07-17 |
| First published | 2024-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51345 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 5.0.0 (latest) — 2024-07-17

## README

# Installation
> `npm install --save @types/node-cmd`

# Summary
This package contains type definitions for node-cmd (https://github.com/RIAEvangelist/node-cmd).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cmd.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cmd/index.d.ts)
````ts
/// <reference types="node" />
import { ChildProcess, ExecException } from "child_process";

export interface RunSyncReturn {
    data: string;
    err: null;
    stderr: null;
}

export interface RunSyncError {
    data: null;
    err: string;
    stderr: string;
}

export function run(
    command: string,
    callback?: (
        error: ExecException | null,
        stdout: string,
        stderr: string,
    ) => void,
): ChildProcess;

export function runSync(command: string): RunSyncReturn | RunSyncError;

````

### Additional Details
 * Last updated: Wed, 17 Jul 2024 22:36:40 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [e6nlaq](https://github.com/e6nlaq).

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