lib/index.js
function (url, qsName, qsValue) {

    let urlObj = Url.parse(url);
    if (qsName && qsValue) {
        urlObj.query = Querystring.parse(qsName + '=' + qsValue);
        urlObj.search = '?' + encodeURIComponent(qsName) + '=' + encodeURIComponent(qsValue);
    } else {
        urlObj.search = '';
    }
    return urlObj.format(urlObj);
}
function (url, qsName, qsValue) {

    let urlObj = Url.parse(url);
    if (qsName && qsValue) {
        urlObj.query = Querystring.parse(qsName + '=' + qsValue);
        urlObj.search = '?' + encodeURIComponent(qsName) + '=' + encodeURIComponent(qsValue);
    } else {
        urlObj.search = '';
    }
    return urlObj.format(urlObj);
}
function ( url , qsName , qsValue ) { let urlObj = Url . parse ( url ) ; if ( qsName && qsValue ) { urlObj . query = Querystring . parse ( qsName + '=' + qsValue ) ; urlObj . search = '?' + encodeURIComponent ( qsName ) + '=' + encodeURIComponent ( qsValue ) ; } else { urlObj . search = '' ; } return urlObj . format ( urlObj ) ; }
appends a querystring to a url path - will overwrite existings values

@param  {String} url
@param  {String} qsName
@param  {String} qsValue
@return {String}
appends a querystring to a url path - will overwrite existings values