Regex to validate that a URL is a git url.
Install with npm:
$ npm install --save is-git-url
Install with yarn:
$ yarn add is-git-url
var isGitUrl = ;;//=> true;//=> false
Edit on debuggex
See http://git-scm.com/book/ch4-1.html for more info.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
This file was generated by verb-generate-readme, v0.5.0, on April 17, 2017.