Hi guys,<p>published my first NPM module: sails-hook-pagify<p>Link: https://github.com/colintoh/sails-hook-pagify<p>For the past few production nodejs app, my team realised that there was a common feature needed from the server by the mobile clients: <i></i>Infinite list loading<i></i>.<p>For that to work, the required API's needs to be paginated. For example, `GET /users?page=1`, `GET /users?page=2`, ... etc.<p>In Sails JS, there is `paginate` method but it lacks metadata like total number of pages, presence of next/prev page .. etc.<p>Hence, sails-hook-pagify was refactored out from the completed projects and into a installable hook that we can re-use for many other future projects.<p>Hope the module is useful for you too. Appreciate any comments on it. Cheers!