1.3.0 • Published 9 years ago

stb-util-parse-uri v1.3.0

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
9 years ago

URL string parser

NPM version Dependencies Status Gitter

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.