{"id":15658703,"url":"https://github.com/jonschlinkert/git-repo-name","last_synced_at":"2025-04-14T13:12:27.338Z","repository":{"id":15707455,"uuid":"18445425","full_name":"jonschlinkert/git-repo-name","owner":"jonschlinkert","description":"Get the repository name from the git remote origin URL","archived":false,"fork":false,"pushed_at":"2023-07-28T00:32:23.000Z","size":26,"stargazers_count":23,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T02:33:17.695Z","etag":null,"topics":["get","git","javascript","jonschlinkert","name","node","nodejs","origin","remote","repo","repository","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-04T16:44:00.000Z","updated_at":"2025-01-10T17:07:38.000Z","dependencies_parsed_at":"2024-06-18T14:05:54.861Z","dependency_job_id":"b84dd7a7-5fa4-43e6-a40b-53f1b177cf91","html_url":"https://github.com/jonschlinkert/git-repo-name","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":"0.23684210526315785","last_synced_commit":"6918c993b511e7ed9f62a88d776a8bb41fc4d30e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-repo-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-repo-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-repo-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-repo-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/git-repo-name/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886325,"owners_count":21177644,"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":["get","git","javascript","jonschlinkert","name","node","nodejs","origin","remote","repo","repository","url"],"created_at":"2024-10-03T13:13:36.864Z","updated_at":"2025-04-14T13:12:27.287Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-repo-name [![NPM version](https://img.shields.io/npm/v/git-repo-name.svg?style=flat)](https://www.npmjs.com/package/git-repo-name) [![NPM downloads](https://img.shields.io/npm/dm/git-repo-name.svg?style=flat)](https://npmjs.org/package/git-repo-name) [![Build Status](https://img.shields.io/travis/jonschlinkert/git-repo-name.svg?style=flat)](https://travis-ci.org/jonschlinkert/git-repo-name)\n\nGet the repository name from the git remote origin URL.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install git-repo-name --save\n```\n\n## Usage\n\n```js\nvar repoName = require('git-repo-name');\n```\n\nBy default `process.cwd()` is used, but you can alternatively specify a different directory as the first argument.\n\n**async**\n\n```js\nrepoName(function(err, name) {\n  //=\u003e 'git-repo-name'\n});\n```\n\n**sync**\n\n```js\nrepoName.sync();\n//=\u003e 'git-repo-name'\n```\n\n## cwd\n\nOptionally specify the directory to use.\n\n**async**\n\n```js\nrepoName('foo', function(err, name) {\n  //=\u003e 'repo-foo-name'\n});\n```\n\n**sync**\n\n```js\nrepoName.sync('foo');\n//=\u003e 'repo-foo-name'\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [git-user-email](https://www.npmjs.com/package/git-user-email): Get the email address of the current user from git config. | [homepage](https://github.com/jonschlinkert/git-user-email)\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)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/git-repo-name/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb \u0026\u0026 npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](http://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/git-repo-name/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 03, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgit-repo-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fgit-repo-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgit-repo-name/lists"}