1.0.2 • Published 2 years ago

sadeghi_query_string_parser v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

sadeghi_query_string_parser

a lightweight module for transforming query string parameters

more documentation is coming soon 😀

Usage

const QueryString = require("sadeghi_query_string_parser");

// to get query params from url 

const input = "https://www.google.com/search?q=query&rlz=value&oq=query&aqs=chrome&sourceid=chrome&ie=UTF-8";

const QueryStringOBJ = QueryString(input);


// will return
/*
{
  q: 'query',
  rlz: 'value',
  oq: 'query',
  aqs: 'chrome',
  sourceid: 'chrome',
  ie: 'UTF-8'
}
*/

Please feel free to raise issues and remember to star this repo!

Thanks!