JSPM

simple-object-from-queries-string

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q30393F
  • License MIT

Returns an object, based on the url queries string.

Package Exports

  • simple-object-from-queries-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-object-from-queries-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.