kc-qstr

[js] Read a querystring and parse params.

Usage no npm install needed!

<script type="module">
  import kcQstr from 'https://cdn.skypack.dev/kc-qstr';
</script>

README

Qstr

[js] Read a querystring and parse params.

Install

npm install kc-qstr

Use

var qstr = require('kc-qstr');
var prms = qstr('a=b&c=d');
console.log(prms); // { a: 'b', c: 'd' }