code: function toCamelCase (str, upper) {
    str = str.toLowerCase().replace(/(?:(^.)|(\s+.)|(-.))/g, function (match) {
      return match.charAt(match.length - 1).toUpperCase()
    })
    if (upper) {
      return str
    }
    return str.charAt(0).toLowerCase() + str.substr(1)
  }
docs: Borrowed from https://github.com/mikedeboer/node-github/blob/master/util.js