Skip to content

daxxog/pagecalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple javascript library for paging calculations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published