pagecalc

Simple javascript library for paging calculations.

npm install pagecalc
10 downloads in the last month

pagecalc

Simple javascript library for paging calculations.

Install

stable

npm install pagecalc

edge

npm install https://github.com/daxxog/pagecalc/tarball/master

Usage

var pagecalc = require('pagecalc');

console.log(pagecalc(
    2, //page number
    5, //item limit
    10 //max items
));

/* output: 
    [ 6, 7, 8, 9, 10 ]
*/
npm loves you