regex-git

Check for git url in any format. https / sss / git

MIT License

Downloads
2
Stars
0
Committers
2

Regex git

Regular expression for matching any git based url

Install

$ npm install --save regex-git

Usage

const regexGit = require('regex-git');
const https = 'https://github.com/perkinsjr/regex-git.git';
const git = '[email protected]:perkinsjr/regex-git.git'

regexGit.test(https);
regexGit.test(git);

License

MIT © James Perkins

Package Rankings
Top 15.9% on Npmjs.org
Badges
Extracted from project README
Build Status tippin.me Donate.Paypal Donate.Coffee Donate.Patreon