bitovi / querystring-parser

MIT License
8 stars 5 forks source link

querystring-parser

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

Installation

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

Next steps

Need help or have questions?

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.

Development / Contributing

See CONTRIBUTING.md