Socket
Socket
Sign inDemoInstall

default-pager

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    default-pager

launch $PAGER in your program


Version published
Maintainers
2
Install size
4.00 kB
Created

Readme

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

FAQs

Last updated on 13 Feb 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc