https://github.com/node-ecosystem/fastest-qs
Fastest query string parser
https://github.com/node-ecosystem/fastest-qs
fast fast-querystring http node-js parse parser qs query querystring string
Last synced: 6 months ago
JSON representation
Fastest query string parser
- Host: GitHub
- URL: https://github.com/node-ecosystem/fastest-qs
- Owner: node-ecosystem
- License: mit
- Created: 2024-12-15T17:50:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-11T03:48:44.000Z (about 1 year ago)
- Last Synced: 2025-06-08T20:54:56.619Z (8 months ago)
- Topics: fast, fast-querystring, http, node-js, parse, parser, qs, query, querystring, string
- Language: TypeScript
- Homepage:
- Size: 2.79 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastest-qs
This project is an object version is an exported `fast-querystring` used by [Elysia](https://github.com/elysiajs/elysia) ([source](https://github.com/elysiajs/elysia/blob/main/src/fast-querystring.ts)), which in turn is inspired by the original [fast-querystring](https://github.com/anonrig/fast-querystring) and improved with [deuri](https://github.com/re-utils/deuri).
## Installation
To install the package, run the following command:
```sh
yarn add fastest-qs
```
## Usage
```ts
import { parseQueryFromURL } from 'fastest-qs'
const queryURL = 'q=1&q2'
const query = parseQueryFromURL(queryURL)
console.log('Query:', query) // { q: 1, q: 2 }
```
## License
This project is licensed under the [MIT License](LICENSE).
Licenses for third-party projects are listed in [THIRD-PARTY-LICENSE](THIRD-PARTY-LICENSE).