Package Exports
- is-git-url
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-git-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-git-url

Regex to validate that a URL is a git url.
See http://git-scm.com/book/ch4-1.html for more info.
Install
Install with npm
$ npm i is-git-url --save
Usage
var isGitUrl = require('is-git-url');
isGitUrl('git://github.com/jonschlinkert/is-git-url.git');
//=> true
isGitUrl('https://github.com/jonschlinkert/');
//=> false
Edit on debuggex
Related
- git-repo-name: Get the repository name from the git remote origin URL.
- git-username: Get the username from a git remote origin URL.
- github-contributors: Generate a markdown or JSON list of contributors for a project using the GitHub API.
- git-branch: Get the current branch for a local git repository.
- parse-github-url: Parse a github URL into an object.
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 20, 2015.