JSPM

url-parameter-parser

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1285
  • Score
    100M100P100Q107382F
  • License MIT

parse GET parameters from url string and return object

Package Exports

  • url-parameter-parser

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 (url-parameter-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Simple and lightweight url decoder.

Just help extract key-value from GET URL string. Result will be object key-value.

Installation

$ npm install url-parameter-parser

Getting started

const parser = require('url-parameter-parser');

const testString = '/socket.io/?uid=3&EIO=3&transport=polling&t=Mq-166I';

const res = parser(testString);

returns: 
  {
    uid: 3,
    EIO: 3,
    transport: 'polling',
    t:'Mq-166I',
  }