npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

less-pager-mini

v1.4.0

Published

A scrollable terminal pager for Node.js CLI apps (terminal only)

Readme

Less-Pager-Mini

npm downloads Platform Build Status

Getting Started

Follow these simple steps to install Less-Pager-Mini.

Prerequisites

Make sure you have the following installed:

Installation

Install Less-Pager-Mini via npm:

npm i less-pager-mini

Usage

import pager from 'less-pager-mini';

const example = ['a', 'b', 'c'];
await pager(example);

Function Parameters:

input: Any unknown input (except symbol) to page.

preserveFormat: If true, preserves JavaScript default formatting.

Format preserved:
["a","b",["c","d"]]
{"a":1,"b":2,"c":{"d":3}}

Formatted:
[
  "a",
  "b",
  [
    "c",
    "d"
  ]
]
{
  "a": 1,
  "b": 2,
  "c": {
    "d": 3
  }
}

examineFile: if true, attempts to treat input as file path(s) and page content, invalid files will be ignored.

Example input:

'a.txt'

or

[
  'a.txt',
  'b.md',
  'c' // Ignored
]

About The Project

Want to glance your array or objects, but scrolling through terminal feels painful? This tool got your back.

Less-Pager-Mini is a lightweight pager that lets you scroll massive terminal output with ease and precision.

Whether you're debugging, dumping logs, or previewing data structures — this pager helps you scroll fast without getting lost in overwhelming output.

  • 🔁 Familiar Commands – Inherits command keys from less
  • 📦 Minimal Dependencies – Lightweight, stable, and portable
  • 🖥️ Pure Terminal UX – Replicates 99% of the less experience

Roadmap

  • [ ] COMMAND MODE
  • [ ] MOVING
    • [x] Forward one line
    • [x] Backward one line
    • [x] Forward N line
    • [x] Backward N line
    • [x] Forward one window
    • [x] Backward one window
    • [x] Forward one window and set window to N
    • [x] Backward one window and set window to N
    • [x] Forward one window, but don't stop at EOF
    • [x] Forward one half-window and set half-window to N
    • [x] Backward one half-window and set half-window to N
    • [x] Right one or N positions half screen width
    • [x] Left one or N positions half screen width
    • [ ] Right to last column
    • [ ] Left to first column
  • [ ] JUMPING
  • [ ] SEARCHING
  • [ ] CHANGING FILES
  • [ ] MISCELLANEOUS COMMANDS
  • [ ] OPTIONS
  • [ ] Custom Key-Bindings
  • [x] Support wide-character (emoji, CJK, etc.) rendering
  • [x] Support help page

Built With

ANSI Escape Codes
TypeScript
Node.js
ESLint
Vitest
Husky

Feedback

Found something odd or came up with a bright improvement?
Feel free to open an issue — contributions and feedback are always welcome!

Contributing

Contributions are welcome! If you have suggestions, improvements, or bug fixes, feel free to:

  • Fork the repo
  • Create a new branch
  • Make your changes
  • Open a pull request

Please follow the coding style and write clear commit messages.
Let’s make Less-Pager-Mini better together!

Acknowledgments

  • Inspired by less by Mark Nudelman – the legendary terminal pager that set the standard.

License

Distributed under the MIT License.
See LICENSE for more information.