{"_id":"@simple-libs/hosted-git-info","_rev":"3-7315a9d5e3b0855ce349971b2e223ec8","name":"@simple-libs/hosted-git-info","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@simple-libs/hosted-git-info","version":"1.0.0","keywords":["git","github","bitbucket","gitlab","hosted-git-info"],"author":{"url":"https://github.com/dangreen","name":"Dan Onoshko","email":"danon0404@gmail.com"},"license":"MIT","_id":"@simple-libs/hosted-git-info@1.0.0","maintainers":[{"name":"dangreen","email":"danon0404@gmail.com"}],"homepage":"https://github.com/TrigenSoftware/simple-libs/tree/master/packages/hosted-git-info#readme","bugs":{"url":"https://github.com/TrigenSoftware/simple-libs/issues"},"dist":{"shasum":"7fdb61b89967d6ef5164472658ebd98f35d286a5","tarball":"https://registry.npmjs.org/@simple-libs/hosted-git-info/-/hosted-git-info-1.0.0.tgz","fileCount":15,"integrity":"sha512-ljI1ZeWHmgLqVus68wMFw1A/WmOuMPNxjxzHOJkRbdQ8jvq0icYn9wSTiQ3WOLoH86Y0w64Yr5Xczr7tfH9P1w==","signatures":[{"sig":"MEUCIAD1rWmVwqdUsXkB/+OROqvpeefKx1MlDooGEbZAM8x0AiEAxyuTmPfO5r3/bFxQds2+FizM+8OtiNQeQ03RrB9Zlbg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":304368},"type":"module","_from":"file:simple-libs-hosted-git-info-1.0.0.tgz","engines":{"node":">=18"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"funding":"https://ko-fi.com/dangreen","scripts":{"lint":"eslint --parser-options tsconfigRootDir:. '**/*.{js,ts}'","test":"run -p lint test:unit test:types","build":"tsc -p tsconfig.build.json","clear":"del ./package ./dist ./coverage","test:unit":"vitest run --coverage","clear:dist":"del ./dist","test:types":"tsc --noEmit","clear:package":"del ./package"},"_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"_resolved":"/private/var/folders/hj/7x3kc5l135jbhq3tcwc_y2zh0000gn/T/1cce8f2baca99c61def11243f743b693/simple-libs-hosted-git-info-1.0.0.tgz","_integrity":"sha512-ljI1ZeWHmgLqVus68wMFw1A/WmOuMPNxjxzHOJkRbdQ8jvq0icYn9wSTiQ3WOLoH86Y0w64Yr5Xczr7tfH9P1w==","repository":{"url":"git+https://github.com/TrigenSoftware/simple-libs.git","type":"git","directory":"packages/hosted-git-info"},"_npmVersion":"10.8.1","description":"A small library to parse hosted git info.","directories":{},"_nodeVersion":"22.4.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hosted-git-info_1.0.0_1748460557964_0.008444524206774773","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@simple-libs/hosted-git-info","version":"1.0.1","keywords":["git","github","bitbucket","gitlab","hosted-git-info"],"author":{"url":"https://github.com/dangreen","name":"Dan Onoshko","email":"danon0404@gmail.com"},"license":"MIT","_id":"@simple-libs/hosted-git-info@1.0.1","maintainers":[{"name":"dangreen","email":"danon0404@gmail.com"}],"homepage":"https://github.com/TrigenSoftware/simple-libs/tree/master/packages/hosted-git-info#readme","bugs":{"url":"https://github.com/TrigenSoftware/simple-libs/issues"},"dist":{"shasum":"455c32b86bdd0a0a5b51b9620d6fe919b81e6faf","tarball":"https://registry.npmjs.org/@simple-libs/hosted-git-info/-/hosted-git-info-1.0.1.tgz","fileCount":12,"integrity":"sha512-R8/PbLKPw5iLeULJgnvwIKkggeyzwXPFERp+4itc0zSrG4sUTf23w7JlMSImPD2o+ZRpEv7YgG6IXgSk87jTgw==","signatures":[{"sig":"MEUCICx4Wh3Y1ao7BMd4w321qzjOsadSYzArdL6X4krBtZVEAiEAqXkk8xqg5Q9oR90X7RGJqquUUtzGrJKJOP+mtm5fSb0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14043},"type":"module","_from":"file:simple-libs-hosted-git-info-1.0.1.tgz","engines":{"node":">=18"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"funding":"https://ko-fi.com/dangreen","_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"_resolved":"/private/var/folders/hj/7x3kc5l135jbhq3tcwc_y2zh0000gn/T/f7a9889b0bacbbbeba8ab3daaacf8b8d/simple-libs-hosted-git-info-1.0.1.tgz","_integrity":"sha512-R8/PbLKPw5iLeULJgnvwIKkggeyzwXPFERp+4itc0zSrG4sUTf23w7JlMSImPD2o+ZRpEv7YgG6IXgSk87jTgw==","repository":{"url":"git+https://github.com/TrigenSoftware/simple-libs.git","type":"git","directory":"packages/hosted-git-info"},"_npmVersion":"10.8.1","description":"A small library to parse hosted git info.","directories":{},"_nodeVersion":"22.4.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hosted-git-info_1.0.1_1748820569473_0.10309829436063755","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@simple-libs/hosted-git-info","type":"module","version":"1.0.2","description":"A small library to parse hosted git info.","author":{"name":"Dan Onoshko","email":"danon0404@gmail.com","url":"https://github.com/dangreen"},"license":"MIT","homepage":"https://github.com/TrigenSoftware/simple-libs/tree/main/packages/hosted-git-info#readme","funding":"https://ko-fi.com/dangreen","repository":{"type":"git","url":"git+https://github.com/TrigenSoftware/simple-libs.git","directory":"packages/hosted-git-info"},"bugs":{"url":"https://github.com/TrigenSoftware/simple-libs/issues"},"keywords":["git","github","bitbucket","gitlab","hosted-git-info"],"engines":{"node":">=18"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"_id":"@simple-libs/hosted-git-info@1.0.2","_integrity":"sha512-aAmGQdMH+ZinytKuA2832u0ATeOFNYNk4meBEXtB5xaPotUgggYNhq5tYU/v17wEbmTW5P9iHNqNrFyrhnqBAg==","_resolved":"/tmp/dfdef7cee0f0a6a2ee012606048fc395/simple-libs-hosted-git-info-1.0.2.tgz","_from":"file:simple-libs-hosted-git-info-1.0.2.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aAmGQdMH+ZinytKuA2832u0ATeOFNYNk4meBEXtB5xaPotUgggYNhq5tYU/v17wEbmTW5P9iHNqNrFyrhnqBAg==","shasum":"be4e00ca2cb621c4f81ad9fb2f31769bf575f8d0","tarball":"https://registry.npmjs.org/@simple-libs/hosted-git-info/-/hosted-git-info-1.0.2.tgz","fileCount":12,"unpackedSize":14221,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE24NFZwMiAd59FdlUie+fBQNqE573q+kDuQu8bzSdOvAiEAr1m53OCY1eDEw6R54vVChX5+o23eQJQAwY+Es3VQmiM="}]},"_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"directories":{},"maintainers":[{"name":"dangreen","email":"danon0404@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hosted-git-info_1.0.2_1772390219349_0.47384075779798907"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-28T19:29:17.875Z","modified":"2026-03-01T18:36:59.624Z","1.0.0":"2025-05-28T19:29:18.194Z","1.0.1":"2025-06-01T23:29:29.656Z","1.0.2":"2026-03-01T18:36:59.483Z"},"bugs":{"url":"https://github.com/TrigenSoftware/simple-libs/issues"},"author":{"name":"Dan Onoshko","email":"danon0404@gmail.com","url":"https://github.com/dangreen"},"license":"MIT","homepage":"https://github.com/TrigenSoftware/simple-libs/tree/main/packages/hosted-git-info#readme","keywords":["git","github","bitbucket","gitlab","hosted-git-info"],"repository":{"type":"git","url":"git+https://github.com/TrigenSoftware/simple-libs.git","directory":"packages/hosted-git-info"},"description":"A small library to parse hosted git info.","maintainers":[{"name":"dangreen","email":"danon0404@gmail.com"}],"readme":"# @simple-libs/hosted-git-info\n\n[![ESM-only package][package]][package-url]\n[![NPM version][npm]][npm-url]\n[![Node version][node]][node-url]\n[![Dependencies status][deps]][deps-url]\n[![Install size][size]][size-url]\n[![Build status][build]][build-url]\n[![Coverage status][coverage]][coverage-url]\n\n[package]: https://img.shields.io/badge/package-ESM--only-ffe536.svg\n[package-url]: https://nodejs.org/api/esm.html\n\n[npm]: https://img.shields.io/npm/v/@simple-libs/hosted-git-info.svg\n[npm-url]: https://www.npmjs.com/package/@simple-libs/hosted-git-info\n\n[node]: https://img.shields.io/node/v/@simple-libs/hosted-git-info.svg\n[node-url]: https://nodejs.org\n\n[deps]: https://img.shields.io/librariesio/release/npm/@simple-libs/hosted-git-info\n[deps-url]: https://libraries.io/npm/@simple-libs%2Fhosted-git-info\n\n[size]: https://packagephobia.com/badge?p=@simple-libs/hosted-git-info\n[size-url]: https://packagephobia.com/result?p=@simple-libs/hosted-git-info\n\n[build]: https://img.shields.io/github/actions/workflow/status/TrigenSoftware/simple-libs/tests.yml?branch=main\n[build-url]: https://github.com/TrigenSoftware/simple-libs/actions\n\n[coverage]: https://coveralls.io/repos/github/TrigenSoftware/simple-libs/badge.svg?branch=main\n[coverage-url]: https://coveralls.io/github/TrigenSoftware/simple-libs?branch=main\n\nA small library to parse hosted git info.\n\n## Install\n\n```bash\n# pnpm\npnpm add @simple-libs/hosted-git-info\n# yarn\nyarn add @simple-libs/hosted-git-info\n# npm\nnpm i @simple-libs/hosted-git-info\n```\n\n## Usage\n\n```ts\nimport { parseHostedGitUrl } from '@simple-libs/hosted-git-info'\n\nparseHostedGitUrl('github:foo/bar')\n/* {\n  type: 'github',\n  url: 'https://github.com/foo/bar',\n  host: 'https://github.com',\n  owner: 'foo',\n  project: 'bar'\n} */\nparseHostedGitUrl('git+ssh://bitbucket.org:foo/bar.git')\n/* {\n  type: 'bitbucket',\n  url: 'https://bitbucket.org/foo/bar',\n  host: 'https://bitbucket.org',\n  owner: 'foo',\n  project: 'bar'\n} */\nparseHostedGitUrl('https://user@gitlab.com/foo/bar.git#branch')\n/* {\n  type: 'gitlab',\n  url: 'https://gitlab.com/foo/bar/tree/branch',\n  host: 'https://gitlab.com',\n  owner: 'foo',\n  project: 'bar'\n} */\n```\n","readmeFilename":"README.md"}