{"id":15836993,"url":"https://github.com/afeiship/next-git-url","last_synced_at":"2025-04-01T16:33:41.021Z","repository":{"id":57122792,"uuid":"283507491","full_name":"afeiship/next-git-url","owner":"afeiship","description":"Get git urls.","archived":false,"fork":false,"pushed_at":"2024-02-26T15:05:46.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T08:08:33.659Z","etag":null,"topics":["git","http","next","pages","ssh","url"],"latest_commit_sha":null,"homepage":"","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-07-29T13:32:21.000Z","updated_at":"2021-10-26T03:22:50.000Z","dependencies_parsed_at":"2024-10-05T15:20:28.151Z","dependency_job_id":"7d3b8a6a-c348-4d8c-b306-01afd11a2bad","html_url":"https://github.com/afeiship/next-git-url","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-git-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-git-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-git-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-git-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-git-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246670861,"owners_count":20815049,"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","http","next","pages","ssh","url"],"created_at":"2024-10-05T15:20:25.371Z","updated_at":"2025-04-01T16:33:40.998Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","readme":"# next-git-url\n\u003e Get git urls.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-git-url\n```\n\n## apis\n| property | description                                 |\n| -------- | ------------------------------------------- |\n| github   | Check if is github.                         |\n| pages    | Gh_pages.                                   |\n| url      | Git url in its source.                      |\n| ssh      | `ssh` git url.                              |\n| https    | `https` git url.                            |\n| mr       | Get merge request url(only support gitlab). |\n\n## usage\n```js\nimport '@jswork/next-git-url';\n\nconst url = 'git@github.com:afeiship/next-git-url.git';\nconst gitUrl = new nx.GitUrl(url);\nconst { github, pages, url, ssh, https } = gitUrl;\n\n// true\n// https://afeiship.github.io/next-git-url/\n// git@github.com:afeiship/next-git-url.git\n// https://github.com/afeiship/next-git-url.git\n// https://github.com/afeiship/next-git-url\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-git-url/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-git-url\n[version-url]: https://npmjs.org/package/@jswork/next-git-url\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-git-url\n[license-url]: https://github.com/afeiship/next-git-url/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-git-url\n[size-url]: https://github.com/afeiship/next-git-url/blob/master/dist/next-git-url.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-git-url\n[download-url]: https://www.npmjs.com/package/@jswork/next-git-url\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-git-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-git-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-git-url/lists"}