Lightweight module for parsing an URI Based in Steven Levithan method.
$ npm install parse-uri --save
If you want to use in the browser (powered by Browserify):
$ bower install parse-uri --save
and later link in your HTML:
<script src="bower_components/parse-uri/dist/parse-uri.js"></script>
var parseUri = require('parse-uri')
parseUri('myURL')
Type: boolean
Default: false
Determinate if use loose
or strict
mode.
Loose mode deviates slightly from the official generic URI spec (RFC 3986)
- is-uri โ Determinate if a string is a valid URI.
MIT ยฉ Kiko Beats