{"library":"jw-paginate","type":"library","category":null,"description":"jw-paginate provides a standalone, framework-agnostic utility for calculating pagination logic, implemented in both JavaScript and TypeScript. It offers a pure function that, given parameters like total items, current page, page size, and maximum pages to display, returns a comprehensive object containing all necessary pagination details. This includes total pages, start and end item indices, start and end page numbers, and an array of page numbers to render in a UI. The current stable version is 1.0.4. Due to its minimalist 'pure logic' design and comprehensive feature set for its specific domain, the library has a very infrequent release cadence, with its last significant update occurring in 2018. Its primary differentiator is its complete lack of external dependencies and framework agnosticism, allowing seamless integration into any web project without introducing framework-specific couplings or unnecessary bloat. It also ships with first-class TypeScript type definitions, providing an enhanced development experience for TypeScript users.","language":"javascript","status":"maintenance","version":"1.0.4","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jw-paginate","imports":["import paginate from 'jw-paginate';","import paginate, { PaginateResult } from 'jw-paginate';"]},{"cmd":"yarn add jw-paginate","imports":[]},{"cmd":"pnpm add jw-paginate","imports":[]}],"homepage":"http://jasonwatmore.com/post/2018/08/07/javascript-pure-pagination-logic-in-vanilla-js-typescript","github":"https://github.com/cornflourblue/jw-paginate","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jw-paginate","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/jw-paginate/compatibility"}}