querystring-reader
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

querystring-reader

The purpose of the module is to be able to extract the key value pairs from a query string from the browser url quickly and easily and return it as an object.


If your query string looks like this

  • /contact?test=1&foo=bar

This will be returned

  • {test: "1", foo: "bar"}

How to use

Install

npm install querystring-reader

Import

import querystringreader from 'querystring-reader';

Use

console.log('qs', querystringreader.showURLQueryString())

/querystring-reader/

    Package Sidebar

    Install

    npm i querystring-reader

    Weekly Downloads

    9

    Version

    1.0.22

    License

    MIT

    Unpacked Size

    4.64 kB

    Total Files

    12

    Last publish

    Collaborators

    • code-in-time