New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

node-pager

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pager

A super simple module that outputs text into a pager.

Source
npmnpm
Version
0.3.3
Version published
Weekly downloads
682
8.25%
Maintainers
1
Weekly downloads
 
Created
Source

node-pager

A super simple module that outputs text into less.

Usage

Install

$ npm install --save node-pager

Require

const fs = require('fs')
const pager = require('node-pager')

// read file contents and print to a pager
fs.readFile('somefile.txt', (err, data) => {
  pager(data.toString('utf8')).then(() => {
    console.log('pager exited')
  })
})

Keywords

node

FAQs

Package last updated on 18 Mar 2019

Related posts