@kba/default-pager
v1.1.1
Published
launch $PAGER in your program
Downloads
3
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