1.1.0 • Published 2 years ago

saleh_query_parser v1.1.0

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

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
}