page-converter
v1.0.1
Published
Convert the number of pages to the index of records
Maintainers
Readme
page-converter
Convert the number of pages to the index of records.
Usage
const { calculateStart } = require('page-converter')
calculateStart(1, 10) // 0API
calculateStart(pageNumber, size)Calculate the index of records.calculatePageNumber(start, offset)Calculate the number of pages.calculateTotalPage(total, offset)Calculate the total page.
License
MIT
