stb-util-parse-uri
v1.3.0
Published
Parse the given URL location string into object.
Downloads
1
Maintainers
Readme
URL string parser
stb-util-parse-uri
is a module to parse location URLs.
Installation
npm install stb-util-parse-uri
Usage
Add to the scope:
var parseUri = require('stb-util-parse-uri');
Parse current location:
console.log(parseUri(document.location));
Debug mode
There is a global var
DEBUG
which activates additional consistency checks and protection logic not available in release mode.
In debug mode the util method is exposed to the global namespace as window.utilParseUri
.
Contribution
If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.
License
stb-util-parse-uri
is released under the GPL-3.0 License.