Neverending Programming Mistakes

npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

sr-pagination

1.0.1 • Public • Published

sr-pagination

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.

Install

Usage

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});

Options

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

Tests

Make sure you check out the test page.

Keywords

none

install

npm i sr-pagination

Downloadsweekly downloads

494

version

1.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability