Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

saleh_query_parser

saleh-sh5ISC1.1.0

Quickly parse your querystring to json.

query, parser, JSON, URL, queryParser

readme

query_string_parser

this project is built to parse a querystring of an URL.
it takes your URL and gives you a JSON object which contains each valid key-value pair in the URL.

you can install the package using npm i saleh_query_parser command.
after installation you have to require the module to use it in your project. like bellow:

const parser = require('saleh_query_parser')

then you can use parser as a function. like this:

const parsed_query_string = parser('http://localhost/users?name=john&age=30')

the result will be:

{
    name:john,
    age:30
}