node package manager

default-pager

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