parse query string
$ npm install sasaplus1-prototype/parse-query.jsvia require()
var parseQuery = require('parse-query');via <script>
<script src="parse-query.min.js"></script>parseQuery('key1=value1&key2=value2&key3=value3');
// => { key1: ["value1"], key2: ["value2"], key3: ["value3"] }
location.search;
// => "?key=a&key=b&key=c"
parseQuery(location.search.replace(/^\?/, ''));
// => { key: ["a", "b", "c"] }The MIT license. Please see LICENSE file.