urlqueryobject

0.0.4 • Public • Published

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',
}

License

MIT

/urlqueryobject/

    Package Sidebar

    Install

    npm i urlqueryobject

    Weekly Downloads

    4

    Version

    0.0.4

    License

    ISC

    Unpacked Size

    4.19 kB

    Total Files

    9

    Last publish

    Collaborators

    • mjanssen