# @types/nexpect

> TypeScript definitions for nexpect

Latest version **0.4.34** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/nexpect
pnpm add @types/nexpect
yarn add @types/nexpect
bun add @types/nexpect
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.34 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.4.34 (latest) — 2023-11-07
- 0.4.31 (ts3.6) — 2021-07-08
- 0.4.30 (ts2.0) — 2017-08-21
- 0.4.33 — 2023-10-18
- 0.4.32 — 2023-09-23
- 0.4.29 — 2016-09-19
- 0.4.28 — 2016-07-14
- 0.4.27-alpha — 2016-07-08
- 0.4.26-alpha — 2016-07-04
- 0.4.25-alpha — 2016-07-02
- 0.4.24-alpha — 2016-07-01
- 0.4.23-alpha — 2016-07-01
- 0.4.22-alpha — 2016-05-25
- 0.4.21-alpha — 2016-05-20
- 0.4.16-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/nexpect/versions

## README

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

import child_process = require("child_process");

declare function spawn(command: string[], options?: ISpawnOptions): IChain;

declare function spawn(command: string, params?: any[], options?: ISpawnOptions): IChain;

declare function spawn(command: string, options?: ISpawnOptions): IChain;

interface IChain {
    expect(expectation: string): IChain;
    expect(expectation: RegExp): IChain;
    wait(expectation: string): IChain;
    wait(expectation: RegExp): IChain;
    sendline(line: string): IChain;
    sendEof(): IChain;
    run(callback: (err: Error, output: string[], exit: string | number) => void): child_process.ChildProcess;
}

interface ISpawnOptions {
    cwd?: string | undefined;
    env?: any;
    ignoreCase?: any;
    stripColors?: any;
    stream?: any;
    verbose?: any;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [vvakame](https://github.com/vvakame).

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