0.1.1 • Published 7 years ago
simple-object-from-queries-string v0.1.1
Module Name
Returns an object, based on the url queries string.
Installation
npm i simple-object-from-queries-string -D
Usage
var getQueryStringObject = require( "simple-object-from-queries-string" ),
queryStringObject = getQueryStringObject();
If the URL looks like this:
http://myurl.com/sub/?foo=bar&test=3
The returned object will look like this:
{
'foo': 'bar',
'test': '3'
}
Note that no type conversion takes place.