Transforms CRUD-related querystrings into structured data.
const querystringParser = require("@bitovi/querystring-parser");
const { page } = querystringParser.parse("page[number]=1&page[size]=10");
console.log(page.number); // --> 1
console.log(page.size); // --> 10
If you are using querystring-parser
with Objection:
npm install @bitovi/objection-querystring-parser
If you are using querystring-parser
with Sequelize:
npm install @bitovi/sequelize-querystring-parser
Otherwise:
npm install @bitovi/querystring-parser
This project is supported by Bitovi, a Nodejs consultancy. You can get help or ask questions on our:
Or, you can hire us for training, consulting, or development. Set up a free consultation.
See CONTRIBUTING.md