Skip to content

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

Notifications You must be signed in to change notification settings

sangram-mkj/qsane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.