snwit-mongo-paper

a mongoose pagination tool

Usage no npm install needed!

<script type="module">
  import snwitMongoPaper from 'https://cdn.skypack.dev/snwit-mongo-paper';
</script>

README

install

npm install snwit-mongo-pager

use

const pager = new Pager<Document>({model:Model<Document>})

pager.find().exec()