query_string 1.0.4 copy "query_string: ^1.0.4" to clipboard
query_string: ^1.0.4 copied to clipboard

Dart 1 only

Query string parser. Turns those nasty query strings into Dart Maps.

QueryString #

This is a query string parser. It turns those nasty query strings into Dart Maps.

Examples #

import 'package:query_string/query_string.dart';

void main() {
  var q = '?page=main&action=front&sid=h985jg9034gj498g859gh495&enc=+Hello%20&empty';
  
  var r = QueryString.parse(q);
  
  print(r['page']); // "main"
  print(r['asdasd']); // null
}

Installation #

Until pub is open to public submissions, you have to specify the path to this Git repository in your pubspec.yaml:

dependencies:
  query_string:
  	git: https://github.com/kaisellgren/QueryString.git

License #

This library is licensed under MIT.

0
likes
15
pub points
9%
popularity

Publisher

unverified uploader

Query string parser. Turns those nasty query strings into Dart Maps.

Repository
View/report issues

License

MIT (license)

More

Packages that depend on query_string