Socket
Book a DemoInstallSign in
Socket

default-pager

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

default-pager

launch $PAGER in your program

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

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

Keywords

text

FAQs

Package last updated on 13 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts