{"id":15649598,"url":"https://github.com/jonschlinkert/is-git-url","last_synced_at":"2025-05-10T23:14:21.992Z","repository":{"id":15765378,"uuid":"18504244","full_name":"jonschlinkert/is-git-url","owner":"jonschlinkert","description":"Regex to validate that a URL is a git URL.","archived":false,"fork":false,"pushed_at":"2017-06-09T19:16:47.000Z","size":19,"stargazers_count":38,"open_issues_count":3,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-10T23:14:16.516Z","etag":null,"topics":["git","is","match","regex","regular-expression","test","url"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-07T02:09:42.000Z","updated_at":"2024-08-09T06:40:25.000Z","dependencies_parsed_at":"2022-09-18T10:11:58.941Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/is-git-url","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-git-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-git-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-git-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fis-git-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/is-git-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253492769,"owners_count":21916974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","is","match","regex","regular-expression","test","url"],"created_at":"2024-10-03T12:30:23.224Z","updated_at":"2025-05-10T23:14:21.963Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-git-url [![NPM version](https://img.shields.io/npm/v/is-git-url.svg?style=flat)](https://www.npmjs.com/package/is-git-url) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-git-url.svg?style=flat)](https://npmjs.org/package/is-git-url) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-git-url.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/is-git-url)\n\n\u003e Regex to validate that a URL is a git url.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-git-url\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add is-git-url\n```\n\n## Usage\n\n```js\nvar isGitUrl = require('is-git-url');\n\nisGitUrl('git://github.com/jonschlinkert/is-git-url.git');\n//=\u003e true\n\nisGitUrl('https://github.com/jonschlinkert/');\n//=\u003e false\n```\n\nEdit on [debuggex](https://www.debuggex.com/r/WeYxcD7Ghp5ekrPR/0#cheatsheet)\n\n![image](https://cloud.githubusercontent.com/assets/383994/2627089/bd37da5c-bdf9-11e3-9c26-d2b02f46bc24.png)\n\nSee [http://git-scm.com/book/ch4-1.html](http://git-scm.com/book/ch4-1.html) for more info.\n\n## About\n\n### Related projects\n\n* [git-branch](https://www.npmjs.com/package/git-branch): Get the current branch for a local git repository. | [homepage](https://github.com/jonschlinkert/git-branch \"Get the current branch for a local git repository.\")\n* [git-repo-name](https://www.npmjs.com/package/git-repo-name): Get the repository name from the git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-repo-name \"Get the repository name from the git remote origin URL.\")\n* [git-username](https://www.npmjs.com/package/git-username): Get the username from a git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-username \"Get the username from a git remote origin URL.\")\n* [github-contributors](https://www.npmjs.com/package/github-contributors): Generate a markdown or JSON list of contributors for a project using the GitHub API. | [homepage](https://github.com/jonschlinkert/github-contributors \"Generate a markdown or JSON list of contributors for a project using the GitHub API.\")\n* [parse-github-url](https://www.npmjs.com/package/parse-github-url): Parse a github URL into an object. | [homepage](https://github.com/jonschlinkert/parse-github-url \"Parse a github URL into an object.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 17 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [tunnckoCore](https://github.com/tunnckoCore) |\n| 1 | [dcadenas](https://github.com/dcadenas) |\n| 1 | [quaertym](https://github.com/quaertym) |\n| 1 | [LoicMahieu](https://github.com/LoicMahieu) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning 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:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 17, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-git-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fis-git-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fis-git-url/lists"}