0.1.1 • Published 7 years ago

simple-object-from-queries-string v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

Module Name

Build Status Coverage Status Dependency Status

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.