Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 742 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 742 Bytes

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.