typescript
Technologies · Testing Tools · Installations· Tests · Acknowledgments · Author
- ESLint - A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.
- Airbnb style guide was followed.
- TypeScript
- Jest Jest is a JavaScript testing framework maintained by Facebook, Inc. designed and built by Christoph Nakazawa with a focus on simplicity and support for large web applications.
- You need to have Node and NPM installed on your computer.
- Installing Node automatically comes with npm.
- Clone this project to your local machine
https://github.com/oluwabukolatina/simple-mongoose-pagination.git
- Installing the project dependencies
Run the command below
$ npm install simple-mongoose-pagination
$ const result = getPaginationQueryDetails({pageNumber, itemsPerPage},totalItemsCount)
$ currentPage: 3,limit: 10, skip: 20,totalItemsCount: 200,totalPages: 20
run the command below
$ npm run watch