lib/utils.js
function(baseUri, branch, filePath, fileName) {
		var varPath = fileName ? 'blob/' : 'tree/'
		   ,branch = branch ? branch + '/' : 'develop'
		   ,filePath = path.relative(process.cwd(), filePath) + '/'
		;

		fileName = fileName || '';

		return baseUri ? baseUri + varPath + branch + filePath + fileName : null;
	}
function(baseUri, branch, filePath, fileName) {
		var varPath = fileName ? 'blob/' : 'tree/'
		   ,branch = branch ? branch + '/' : 'develop'
		   ,filePath = path.relative(process.cwd(), filePath) + '/'
		;

		fileName = fileName || '';

		return baseUri ? baseUri + varPath + branch + filePath + fileName : null;
	}
function ( baseUri , branch , filePath , fileName ) { var varPath = fileName ? 'blob/' : 'tree/' , branch = branch ? branch + '/' : 'develop' , filePath = path . relative ( process . cwd ( ) , filePath ) + '/' ; fileName = fileName || '' ; return baseUri ? baseUri + varPath + branch + filePath + fileName : null ; }
Construct an URI to the web view of the file or directory in a repository
@param {string} baseUri – e.g. 'https://github.com/MarcDiethelm/xtc'
@param {string} branch
@param {string} filePath
@param {string} [fileName]
@returns {string} – URI to the web view of the file or directory in the repository
Construct an URI to the web view of the file or directory in a repository