urlqueryobject
v0.0.4
Published
A 180 byte (gzip) utility to get the current url query params as object.
Downloads
7
Readme
urlqueryobject
A 180 byte (gzip) utility to get the current url query params as object.
Install
npm i urlqueryobject
Example
Url: https://example.com?foo=baz&something=more
import urlqueryobject from 'urlqueryobject';
const params = urlqueryobject();
console.log(params);
{
foo: 'baz',
something: 'more',
}