node package manager

default-pager

launch $PAGER in your program

default-pager

Launch $PAGER in your program.

adapted from substack/node-editor

var pager = require('default-pager')
 
stream.pipe(pager(function () {
  //user exited 
  console.log('done!')
})

Launches pager process and returns a writable stream. cb(code, signal) is fired once the pager is exited.

Type: String
Default: $PAGER

Pager program to launch.

Type: [String]
Default: []

Arguments passed to the pager program.

MIT