1.0.2 • Published 5 years ago

url-parameter-parser v1.0.2

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

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',
  }