sangram-mkj / qsane

A javascript library to get the required query parameters from the url bar

Home Page:https://www.npmjs.com/package/qsane

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qsane

A Javascript library to get all the things you may require from your URL bar.

Currently this package has these functions available & ready to use anywhere using npm: getQuery, getLocation, getPathname, getQuery, getSearch, getOnly All the names are self explanatory & returns exactly what is mentioned in the function name.

The getOnly function requires a param. If you need the value of a specific query from your url, then you can pass that exact query name & it will return the value. Suppose your URL is: 'https://www.something.com/newPage?name=qsane?valid=true If you need the value of only 'name', then you can call getOnly('name') and you'll get 'qsane' as the output.

Any contributions are welcome.

About

A javascript library to get the required query parameters from the url bar

https://www.npmjs.com/package/qsane


Languages

Language:JavaScript 100.0%