ogt / valid-url

Node module that provides URI validation functions
https://npmjs.org/package/valid-url
Other
215 stars 26 forks source link

SSH URI #26

Open RonWang opened 5 years ago

RonWang commented 5 years ago

Hi! I've been using this great library for a while and doesn't have problem at all. Until I try to use it to validate a github ssh url, like "git@github:xxx/repo.git". Is this SSH uri also a valid url that we should support in this library?

*Reference for the ssh url https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html.

adrienv1520 commented 4 years ago

Hi @RonWang,

I was facing the same issues with valid-url but also validator so I decided to build a module as reliable as possible strictly based on RFC-3986: https://github.com/adrienv1520/node-uri

The main features of this project are:

I hope it could help you.