Overview
qs_dart is a Dart library for encoding and decoding query strings, inspired by the popular JavaScript qs library. It provides robust parsing and stringification of URL query parameters, supporting nested objects, arrays, and custom separators. Ideal for handling HTTP request and response data in web and mobile applications, it ensures consistent query string formatting across platforms. The package is lightweight, well-tested, and compatible with all major Flutter platforms.
Use cases
- Parsing URL query parameters
- Building dynamic API URLs
- Handling form data in HTTP requests
- Serializing nested objects to query strings
- Interoperability with REST APIs
Key features
- Supports nested object encoding
- Handles array syntax in queries
- Customizable delimiter and depth options
- Robust error handling
- Cross-platform compatibility
Suitable for
- Web and mobile app developers
- API integrations
- Form data processing
- Backend-compatible query string handling
Considerations
- May require careful configuration for complex nested structures
- Not designed for full URL manipulation
- Limited to query string operations only
- Depends on external JS library behavior for edge cases