knex pagination plugin

JavaScript
bookshelf.plugin('pagination')
Model
.forge()
.fetchPage({page: 10, pageSize: 20});
// OR
fetchPage({limit: 20, offset: 180});
Source

Also in JavaScript: