JavaScript module for consuming paginated Django REST Framework endpoints. Current stable version 0.3.0, released around 2016, with low release cadence. Key differentiator: separates pagination logic from individual requests, caches pages, and works with any Promises/A+ compliant implementation. Requires global Promise polyfill in older environments. Provides methods like next(), prev(), first(), last(), and reset(). Unmaintained since 2016.
npm install drf-paginatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a paginator using fetch, gets the first page via next().
Consider alternatives like react-query or swr for pagination, or use fetch/axios directly with manual pagination.
Include a polyfill like 'es6-promise' before loading drf-paginator.
For Webpack, ensure .babelrc has es2015 preset. For modern bundlers, use a transpiled version or fork.
import { paginate } from 'drf-paginator';Install and import a polyfill like 'es6-promise/auto' before drf-paginator.
No dependency data recorded yet.