default-pager

1.1.0 • Public • Published

default-pager

Launch $PAGER in your program.

adapted from substack/node-editor

Example

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
Default: $PAGER

Pager program to launch.

opts.args

Type: [String]
Default: []

Arguments passed to the pager program.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i default-pager

Weekly Downloads

64

Version

1.1.0

License

MIT

Last publish

Collaborators

  • eush77