# @types/derhuerst__cli-on-key

> TypeScript definitions for @derhuerst/cli-on-key

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

## Install

```sh
npm install @types/derhuerst__cli-on-key
pnpm add @types/derhuerst__cli-on-key
yarn add @types/derhuerst__cli-on-key
bun add @types/derhuerst__cli-on-key
```

## 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.1.6 |
| Published | 2023-11-07 |
| First published | 2018-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51482 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.1.6 (latest) — 2023-11-07
- 0.1.3 (ts3.6) — 2021-07-08
- 0.1.2 (ts3.2) — 2020-09-26
- 0.1.1 (ts2.0) — 2019-09-25
- 0.1.5 — 2023-10-18
- 0.1.4 — 2023-09-22
- 0.1.0 — 2018-05-30

## README

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

declare namespace listen {
    interface Key {
        name?: string | undefined;
        ctrl: boolean;
        meta: boolean;
        shift: boolean;
        sequence: string;
        code?: string | undefined; // ansi code leaving out leading \x1b's
        raw: string;
    }

    type Callback = (key: Key) => void;
    type OffKeyPress = (key: Key) => void;
}

declare function listen(
    stream: NodeJS.ReadStream,
    callback: listen.Callback,
): listen.OffKeyPress;

export = listen;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Rong Shen](https://github.com/jacobbubu).

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