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 🙏

© 2026 – Pkg Stats / Ryan Hefner

term-list-scrollable

v0.1.3

Published

scrollable interactive terminal lists

Readme

term-list-scrollable NPM version

Renders an interactive list to the terminal that users can navigate using the arrow keys, similar API with term-list but scrollable, and support header or footer.

Installation

$ npm install term-list-scrollable

Example

A fully interactive scrollablelist demonstrating removal via backspace, and opening of the websites via the return key.

var ScrollableList = require('term-list-scrollable');
var exec = require('child_process').exec;

var list = new ScrollableList({
  marker: '\033[36m› \033[0m',
  markerLength: 2,
  viewportSize: 5
});
list.header('Bookmarks');
list.add('http://google.com', 'Google');
list.add('http://yahoo.com', 'Yahoo');
list.add('http://cloudup.com', 'Cloudup');
list.add('http://github.com', 'Github');
list.footer('press RETURN to open');
list.start();

setTimeout(function(){
  list.add('http://cuteoverload.com', 'Cute Overload');
  list.draw();
}, 2000);

setTimeout(function(){
  list.add('http://uglyoverload.com', 'Ugly Overload');
  list.draw();
}, 4000);

list.on('keypress', function(key, item){
  switch (key.name) {
    case 'return':
      exec('open ' + item);
      list.stop();
      console.log('opening %s', item);
      break;
    case 'backspace':
      list.remove(list.selected());
      break;
    case 'c':
      if (key.ctrl) {
        list.stop();
        process.exit();
      }
      break;
  }
});

list.on('empty', function(){
  list.stop();
});

API

ScrollableList()

Initialize a new ScrollableList with opts:

  • marker optional marker string defaulting to '› '
  • markerLength optional marker length, otherwise marker.length is used
  • viewportSize optional scrollable list size, defualt is 16

ScrollableList.add(id: String, label: String)

Add item id with label.

ScrollableList.header(lable: String)

Set or get header, set header if label provided, or return header item. label with '' will unset it.

ScrollableList.footer(lable: String)

Set or get footer, set footer if label provided, or return footer item. label with '' will unset it.

ScrollableList.remove(id: String)

Remove item id.

ScrollableList.at(i: Number)

Return item at i.

ScrollableList.select(id: String)

Select item id.

ScrollableList.selected()

Return seleted item.

ScrollableList.draw()

Re-draw the list.

ScrollableList.up()

Select the previous item if any.

ScrollableList.down()

Select the next item if any.

ScrollableList.stop()

Reset state and stop the list.

ScrollableList.start()

Start the list.

ScrollableList.on(event: String, callback: Function)

Bind event listener

Thanks

term-list

License

MIT