Simple pagination generator.

npm install sr-pagination
4 downloads in the last day
33 downloads in the last week
143 downloads in the last month


Simple pagination generator.

The sr prefix stands for simpler, which is comparative of sim┬Ěple (Adjective)

  1. Easily understood or done; presenting no difficulty.
  2. Plain, basic, or uncomplicated in form, nature, or design; without much decoration or ornamentation.



Note that you can use this module with commonjs (nodejs), amdjs or as a global object in the browser.

var result = pagination({page:1, links: 5, rows: 5, total: 50});


  • page: current page
  • links: visible page links
  • rows: rows per page
  • total: total number of all items


Make sure you check out the test page.

npm loves you