cjs-parse-uri
v1.3.0
Published
Parse the given URL location string into object.
Downloads
6
Maintainers
Readme
URL string parser
Module to parse location URLs.
Installation
npm install cjs-parse-uri
Usage
Add to the scope:
var parseUri = require('cjs-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.
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
cjs-parse-uri
is released under the GPL-3.0 License.