index.js
function Paginator(options) {
  debug('initializing from <%s>', __filename);
  this.options = options || {};
  this.footer = this.options.footer;
  if (typeof this.footer !== 'string') {
    this.footer = '(Move up and down to reveal more choices)';
  }
  this.firstRender = true;
  this.lastIndex = 0;
  this.position = 0;
}
function Paginator(options) {
  debug('initializing from <%s>', __filename);
  this.options = options || {};
  this.footer = this.options.footer;
  if (typeof this.footer !== 'string') {
    this.footer = '(Move up and down to reveal more choices)';
  }
  this.firstRender = true;
  this.lastIndex = 0;
  this.position = 0;
}
function Paginator ( options ) { debug ( 'initializing from <%s>' , __filename ) ; this . options = options || { } ; this . footer = this . options . footer ; if ( typeof this . footer !== 'string' ) { this . footer = '(Move up and down to reveal more choices)' ; } this . firstRender = true ; this . lastIndex = 0 ; this . position = 0 ; }
The paginator keeps track of a position index in a list
and returns a subset of the choices if the list is too
long.
The paginator keeps track of a position index in a list and returns a subset of the choices if the list is too long .