📄 Easily implement pagination into your Knex.js project.

Overview

knex-pagination

Easily implement pagination into your application.

Usage

const knex = require('knex');
const paginate = require('knex-pagination');
const connection = knex(config);

// Has a caseStyle parameter, accepts "camelCase", "PascalCase", "snake_case" and "kebap-case". Defaults to "camelCase".
paginate();

// Passed configuration passed is optional, defaults to { perPage: 10, currentPage: 1, dataKey: "data" }
const result = await knex('User').paginate({
	perPage: 10,
	currentPage: 2
});
You might also like...

Converts a MSSQL Result set into a markdown table, directly to stdout

Converts a MSSQL Result set into a markdown table, directly to stdout

mssql-result-to-md-table Tired of formating all the results of a SQL Server query into a markdown table? Well, well, well your problems are gone! Just

Feb 12, 2022

A tool to inject javascript into the Steam Deck client.

Steam Deck UI Inject A tool to inject javascript into the Steam Deck client. How it works This tool works by taking advantage of the remote debugging

Dec 5, 2022

A Gmail Clone which built with ReactJS and Redux. You can sign in with your Google Account, compose a new e-mail and send realtime emails to the project.

Gmail Clone with ReactJS A Gmail Clone that you can sign in with your Google Account, compose a new e-mail and send realtime emails to the project. Cl

Nov 14, 2022

StashQL is a light-weight, open-source npm package that improves the speed of your GraphQL queries in your application.

StashQL is a light-weight, open-source npm package that improves the speed of your GraphQL queries in your application.

Table of Contents What is StashQL? Install Getting Started Queries Mutations refillCache clearRelatedFields Logging The Team What is StashQL? StashQL

Sep 30, 2022

Explore, create and deploy your SQLite databases right from your browser. Quick and easy, no installation required.

Explore, create and deploy your SQLite databases right from your browser. Quick and easy, no installation required.

SQLighter (under development, alpha code) SQLighter is a database explorer born for SQLite that helps you design and deploy your application database

Sep 20, 2022

Official turtleDB project

Official turtleDB project

Overview • Getting Started • Features • Contributors • License • Overview turtleDB is a JavaScript framework and in-browser database for developers to

Dec 24, 2022

project overview tool, used to analyze the amount of code, the number of files, code statistics and so on.

project overview tool, used to analyze the amount of code, the number of files, code statistics  and so on.

pot z-pot is a project overview tool, used to analyze the amount of code, the number of files, code statistics and so on. 项目概述工具,用于分析代码量、文件数、代码统计等。 快速

Aug 10, 2022

Burger builder project using React, Hooks and Context API.

Burger builder project using React, Hooks and Context API.

Burger Builder In this project, I made a context-api project by creating hamburgers with 3 different materials. Project setup npm install Project star

Jun 17, 2021

Scratch project

onlydevs Only Devs for Lonely Devs (A dating application for you losers) Scratch project Front-end: REACT with Redux, react router dom for compenent r

Jul 8, 2021
Owner
Snoot
o((*^▽^*))o programmer hailing from the netherlands
Snoot
A simple yet powerful discord.js embed pagination package.

Pagination.djs A discord.js compatible pagination module. It's a simple and lightweight module to paginate discord embeds. Read docs here: pagination.

Parbez 12 Nov 9, 2022
This library helps implement caching using Cloudflare Workers KV

With a few lines of code, you can control the execution of functions that you want to cache for speed, store them in the cache, and skip execution of the function if the cache exists.

AijiUejima 8 Oct 20, 2022
The Wholesome App. A project that allows you to upload images directly to MongoDB Atlas into your collection, a faster cloud database.

The Wholesome App. A project that allows you to upload images directly to MongoDB Atlas into your collection, a faster cloud database. To upload your cute and wholesome images.

Gourav Singh Rawat 2 Jul 17, 2022
Add hic et nunc data into your websites and Node.js scripts

hic et nunc API Guide Build websites and Node.js scripts with hic et nunc data hic et nunc is a decentralized NFT marketplace built on the Tezos block

Ian Petrarca 34 May 3, 2022
a Node.JS script to auto-import USB drives that are attached to a computer. Use it to turn your NAS into a smart photo / file importer.

File Vacuum 5000 ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ WARNING: This script is designed to manipulate files on both an external drive and another specif

null 46 Jan 10, 2022
Modular Redis connection and PUBSUB subscription manager for node. Easily extendable. Built for performance, powered by ioredis.

RediBox Redis connection and PUBSUB subscription manager for node. Built for performance, powered by ioredis (for now). Maintained by TeamFA. What is

RediBox 83 Dec 15, 2022
Take screenshots easily in multidisplay setups!!

Best Screenshot App for people with multiple Displays. here's the best way to take screenshot of whole displays in a single click: ???? Download the b

null 16 Jul 21, 2022
WriterAI is an AI based content writing tool that helps users easily write high quality emails, blogs, letters, thesis and other stuff.

WriterAI is an AI based content writing tool that helps users easily write high quality emails, blogs, letters, thesis and other stuff. One can also share their project with others and work as a team.

Ishant Chauhan 67 Jan 2, 2023
Zotero plugin for syncing items into a Notion database

Notero A Zotero plugin that syncs items into a Notion database when added to a specific collection. Scaffolded with generator-zotero-plugin and built

David Vanoni 991 Jan 9, 2023