node/deps/npm/lib/utils/is-git-url.js

14 lines
230 B
JavaScript
Raw Normal View History

2013-07-12 23:56:59 +08:00
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
}
}