Node.js examples for String:URL String
Removing any trailing slash from a URL
function removeTrailingSlash(url) { return (url[url.length - 1] == "/") ? url.substr(0, url.length - 1) : url; }