is-url
is-url copied to clipboard
(Maybe) add support for git+ssh:// URLs
From npm's package.json docs, Git urls can be of the form:
- git://github.com/user/project.git#commit-ish
- git+ssh://user@hostname:project.git#commit-ish
- git+ssh://user@hostname/project.git#commit-ish
- git+http://user@hostname/project/blah.git#commit-ish
- git+https://user@hostname/project/blah.git#commit-ish
Not sure it's appropriate to support these kinds of URLs, but figured I'd bring it up.
Perhaps they could be optionally supported with a new allowGit option (see https://github.com/segmentio/is-url/pull/14 for a WIP concerning a new options parameter)