lib/twitreq.js
function percentEncode (value) {
    var result = encodeURIComponent(value);
    return result.replace(/\!/g, "%21")
                 .replace(/\'/g, "%27")
                 .replace(/\(/g, "%28")
                 .replace(/\)/g, "%29")
                 .replace(/\*/g, "%2A");
}
function percentEncode (value) {
    var result = encodeURIComponent(value);
    return result.replace(/\!/g, "%21")
                 .replace(/\'/g, "%27")
                 .replace(/\(/g, "%28")
                 .replace(/\)/g, "%29")
                 .replace(/\*/g, "%2A");
}
function percentEncode ( value ) { var result = encodeURIComponent ( value ) ; return result . replace ( / \! / g , "%21" ) . replace ( / \' / g , "%27" ) . replace ( / \( / g , "%28" ) . replace ( / \) / g , "%29" ) . replace ( / \* / g , "%2A" ) ; }
Return a RFC3986 compliant percent encoded string.
Return a RFC3986 compliant percent encoded string .