npm.io
1.1.0 • Published 4 years ago

saleh_query_parser

Licence
ISC
Version
1.1.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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
}

Keywords