# node-pager

> A super simple module that outputs text into a pager.

Latest version **0.3.6** (published 2021-10-20) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.6 |
| Published | 2021-10-20 |
| First published | 2017-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Scott McKenzie |
| Maintainers | slammayjammay |
| Keywords | node, pager, output, console, less |

## Links

- npm: https://www.npmjs.com/package/node-pager
- Repository: https://github.com/slammayjammay/node-pager
- Homepage: https://github.com/slammayjammay/node-pager#readme
- Issues: https://github.com/slammayjammay/node-pager/issues
- npm.io page: https://npm.io/package/node-pager

## Dependencies (1)

- [tmp](https://npm.io/package/tmp.md) ^0.2.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.3.6 (latest) — 2021-10-20
- 0.3.5 — 2021-02-07
- 0.3.4 — 2020-08-12
- 0.3.3 — 2019-03-18
- 0.3.2 — 2018-04-01
- 0.3.1 — 2017-02-02
- 0.3.0 — 2017-01-18
- 0.2.3 — 2017-01-15
- 0.2.2 — 2017-01-14
- 0.2.1 — 2017-01-14
- 0.2.0 — 2017-01-14
- 0.1.0 — 2017-01-14

## README

# `node-pager`
> A super simple module that outputs text into `less`.

# Usage
Install
```sh
$ npm install --save node-pager
```

Require
```js
const fs = require('fs')
const pager = require('node-pager')

// read file contents and print to a pager
fs.readFile('somefile.txt', (err, data) => {
  pager(data.toString('utf8')).then(() => {
    console.log('pager exited')
  })
})
```

You can specify options to be passed to `less` (only if your platform is not windows).

```js
pager('my string', '-F'); // less -F
pager('my string'); // by default less -R (allows colors)
```

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