pagecalc

Simple javascript library for paging calculations.

pagecalc

Simple javascript library for paging calculations.

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 ]
*/