summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/is-git-url.js
blob: 7ded4b602a20fae98b3c77b5e94c2db3982e59d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module.exports = isGitUrl

function isGitUrl (url) {
  switch (url.protocol) {
    case "git:":
    case "git+http:":
    case "git+https:":
    case "git+rsync:":
    case "git+ftp:":
    case "git+ssh:":
      return true
  }
}