# default-pager

> launch $PAGER in your program

Latest version **1.1.0** (published 2016-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install default-pager
pnpm add default-pager
yarn add default-pager
bun add default-pager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-02-13 |
| First published | 2013-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | James Halliday |
| Maintainers | dominictarr, eush77 |
| Keywords | text, pager, shell |

## Links

- npm: https://www.npmjs.com/package/default-pager
- Repository: https://github.com/dominictarr/default-pager
- Issues: https://github.com/dominictarr/default-pager/issues
- npm.io page: https://npm.io/package/default-pager

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-02-13
- 1.0.2 — 2015-03-31
- 1.0.1 — 2013-08-25
- 1.0.0 — 2013-08-25

## README

default-pager
======

Launch $PAGER in your program.

adapted from [substack/node-editor](https://github.com/substack/node-editor)

Example
-------

``` js
var pager = require('default-pager')

stream.pipe(pager(function () {
  //user exited
  console.log('done!')
})
```

API
---

### `pager([opts], [cb(code, signal)])`

Launches pager process and returns a writable stream. `cb(code, signal)` is fired once the pager is exited.

#### `opts.pager`

Type: `String` <br>
Default: `$PAGER` <br>

Pager program to launch.

#### `opts.args`

Type: `[String]` <br>
Default: `[]` <br>

Arguments passed to the pager program.

License
-------

MIT

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