Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

essenmitsosse/simple-object-from-queries-string

Repository files navigation

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.

About

Returns an object, based on the url queries string

Resources

License

Stars

Watchers

Forks

Packages

No packages published