dist/lite-url.js
function liteURL(str) {
        // We first check if we have parsed this URL before, to avoid running the
        // monster regex over and over (which is expensive!)
        var uri = memo[str];

        if (typeof uri !== 'undefined') {
            return uri;
        }

        //parsed url
        uri = uriParser(str);

        uri.params = queryParser(uri);

        // Stored parsed values
        memo[str] = uri;

        return uri;
    }
function liteURL(str) {
        // We first check if we have parsed this URL before, to avoid running the
        // monster regex over and over (which is expensive!)
        var uri = memo[str];

        if (typeof uri !== 'undefined') {
            return uri;
        }

        //parsed url
        uri = uriParser(str);

        uri.params = queryParser(uri);

        // Stored parsed values
        memo[str] = uri;

        return uri;
    }
function liteURL ( str ) { // We first check if we have parsed this URL before, to avoid running the // monster regex over and over (which is expensive!) var uri = memo [ str ] ; if ( typeof uri !== 'undefined' ) { return uri ; } //parsed url uri = uriParser ( str ) ; uri . params = queryParser ( uri ) ; // Stored parsed values memo [ str ] = uri ; return uri ; }
Uri parsing method.

@param {string} str
@returns {{
href:string,
origin:string,
protocol:string,
username:string,
password:string,
host:string,
hostname:string,
port:string,
path:string,
search:string,
hash:string,
params:{}
}}
Uri parsing method .