implementaion of URLSearchParams at WHATWG Living Standard https://url.spec.whatwg.org/
$ npm install urlsearchparams
npm install npm test
and also open test/index.html in your browser and see console.
other types which this scripts depends on are in types directory.
The MIT License (MIT) Copyright (c) 2013 Jxck