https://github.com/perkinsjr/regex-git
Check for git url in any format. https / sss / git
https://github.com/perkinsjr/regex-git
git-regex git-url isitgit regex-git
Last synced: 5 months ago
JSON representation
Check for git url in any format. https / sss / git
- Host: GitHub
- URL: https://github.com/perkinsjr/regex-git
- Owner: perkinsjr
- License: mit
- Created: 2019-04-10T01:16:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T19:24:55.000Z (over 3 years ago)
- Last Synced: 2025-10-09T17:10:00.124Z (9 months ago)
- Topics: git-regex, git-url, isitgit, regex-git
- Language: JavaScript
- Size: 301 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/perkinsjr/regex-git)
[](https://tippin.me/@james_r_perkins)
[](https://paypal.me/jamesperkinsOSS)
[](https://www.buymeacoffee.com/Of6xAMjSK)
[](https://www.patreon.com/james_perkins)
# 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 = 'git@github.com:perkinsjr/regex-git.git'
regexGit.test(https);
regexGit.test(git);
### License
MIT © [James Perkins](https://jamesperkins.io)