Pagination API helper for MySQL and PostgreSQL. Current stable version is 2.5.4. Release cadence is irregular. Key differentiators: ships two APIs (legacy and v2) from one package; v2 supports both MySQL and PostgreSQL dialects, cursor pagination, and named exports. Legacy API remains unchanged for backward compatibility.
npm install pagi-helpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic pagination with MySQL dialect: search, filters, sort, and column mapping.
Use v2 subpath import: require('pagi-help/v2') and set dialect to 'postgres'.Only pass safeOptions.validate. Remove other safeOptions keys.
Follow phase 1 rules: single table, use 'after', provide 'sort' and 'limit', omit pageNo/itemsPerPage/offset/before.
Replace PagiHelpV210 with PagiHelpV2 in imports.
Update Node.js to >=12.19.0 or use named import: const { PagiHelpV2 } = require('pagi-help');Use require('pagi-help/v2') or named import { PagiHelpV2 }.Set dialect to 'mysql' or 'postgres'.
No dependency data recorded yet.