mongoose-plugin-paginate
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-pre.1 • Public • Published

mongoose-plugin-pagination

Pagination plugin for mongoose

Node.js CI

Node.js Publish

Why This Plugin

mongoose-plugin-paginate is a cursor based pagination library having a page wrapper. The plugin can be used as both page as well as cursor based pagination. The main usage of the plugin is you can alter the return value keys directly in the query itself so that you don't need any extra code for transformation. The initial idea of this plugin is loosely based on mongoose-plugin-paginate package by github.com/edwardhotchkiss/. So this can be considered as an upgraded version of mongoose-plugin-paginate with much more options.

The below documentation is not perfect. Feel free to contribute. :)

Installation

npm install mongoose-plugin-pagination

Package Sidebar

Install

npm i mongoose-plugin-paginate

Weekly Downloads

9

Version

2.0.0-pre.1

License

MIT

Unpacked Size

11.9 kB

Total Files

9

Last publish

Collaborators

  • sukaato