Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitovi/querystring-parser
https://github.com/bitovi/querystring-parser
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitovi/querystring-parser
- Owner: bitovi
- License: mit
- Created: 2022-05-06T21:34:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T18:45:54.000Z (8 months ago)
- Last Synced: 2024-09-19T13:37:02.457Z (about 2 months ago)
- Language: JavaScript
- Size: 2.44 MB
- Stars: 8
- Watchers: 26
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: license.md
Awesome Lists containing this project
README
# querystring-parser
Transforms CRUD-related querystrings into structured data.
```js
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](https://vincit.github.io/objection.js/):
```sh
npm install @bitovi/objection-querystring-parser
```If you are using `querystring-parser` with [Sequelize](https://sequelize.org):
```sh
npm install @bitovi/sequelize-querystring-parser
```Otherwise:
```sh
npm install @bitovi/querystring-parser
```## Next steps
- Read the [full documentation](https://github.com/bitovi/querystring-parser/tree/main/packages/querystring-parser#readme)
- Read the docs for ORM-specific versions
- [Objection](https://github.com/bitovi/querystring-parser/tree/main/packages/objection#readme)
- [Sequelize](https://github.com/bitovi/querystring-parser/tree/main/packages/sequelize#readme)## Need help or have questions?
This project is supported by [Bitovi, a Nodejs consultancy](https://www.bitovi.com/backend-consulting/nodejs-consulting). You can get help or ask questions on our:
- Bitovi community [Discord](https://discord.gg/J7ejFsZnJ4)
- [Twitter](https://twitter.com/bitovi)Or, you can hire us for training, consulting, or development. [Set up a free consultation.](https://www.bitovi.com/backend-consulting/nodejs-consulting)
## Development / Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)