default-pager

launch $PAGER in your program

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
default-pager
1131.1.08 years ago11 years agoMinified + gzip package size for default-pager in KB

Readme

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