Skip to content

code-in-time/querystring-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

This will read a browser query string and return an object literal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published