Simple parse github url adopted from https://github.com/jonschlinkert/parse-github-url Gathers all path slugs after repo name to branchAndDirectory , but doesn't try to split it to branch and path, because branch name can contain slashes