TS QS

๐Ÿš€ Modern, Type-Safe query string parser and stringifier for TypeScript

Enhanced type safety and modern features for query string handling. Included auto type conversion for numbers, booleans, and dates. Zero dependencies.

NPM VersionLicenseTypeScriptZero Dependencies
โšก๏ธ

Why ts-qs?

The robust, zero-dependency alternative for modern TypeScript applications.

  • Auto Type Conversion
  • Dot Notation support
  • Zero Dependencies
  • Small Footprint
Support Development
TypeScript Native
Built from scratch with TypeScript for maximum type safety and inference. No extra @types needed.
Auto Conversion
Automatically converts numbers, booleans, and ISO dates from strings with configurable options.
Deep Config
Control array formats (`indices`, `brackets`, `repeat`, `comma`), nested depth limits, and more.
Secure
Protects against prototype pollution and deep nesting attacks by default.
Modern Standards
Supports RFC3986, RFC1738 standards, and works seamlessly with ESM & CommonJS.
Dev Experience
Intuitive API design that mimics familiar tools while adding modern capabilities.
Contribution
We welcome contributions from the community! Help us make ts-qs even better.

Follow these steps to contribute:

  1. 1Fork the repository on GitHub
  2. 2Clone your fork locally
  3. 3Create a new feature branch
  4. 4Make your changes and commit
  5. 5Push to your branch
  6. 6Open a Pull Request with a detailed description
License
MIT License

This project is free and open-source software licensed under the MIT License. You are free to use, modify, and distribute it as you wish.

Copyright ยฉ 2026 Noor Mohammad

All rights reserved under MIT License

โ˜•Support the Project
If you find ts-qs useful, consider buying me a coffee!

Your support helps maintain and improve this project. Every coffee counts! ๐Ÿ™

Zero dependenciesโ€ขAuto Type Conversionโ€ขActive development
Buy me a coffeeBuy me a coffee

๐Ÿ’ Thank you for your support!