1.3.0 • Published 10 years ago
stb-util-parse-uri v1.3.0
URL string parser
stb-util-parse-uri is a module to parse location URLs.
Installation
npm install stb-util-parse-uriUsage
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
DEBUGwhich 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.
1.3.0
10 years ago