{"_id":"@simple-libs/hosted-git-info","_rev":"4160282","name":"@simple-libs/hosted-git-info","description":"A small library to parse hosted git info.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"dangreen","email":""}],"time":{"modified":"2026-03-01T20:38:06.000Z","created":"2025-05-28T19:29:18.194Z","1.0.2":"2026-03-01T18:36:59.483Z","1.0.1":"2025-06-01T23:29:29.656Z","1.0.0":"2025-05-28T19:29:18.194Z"},"users":{},"author":{"name":"Dan Onoshko","email":"danon0404@gmail.com","url":"https://github.com/dangreen"},"repository":{"type":"git","url":"git+https://github.com/TrigenSoftware/simple-libs.git","directory":"packages/hosted-git-info"},"versions":{"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":{"shasum":"be4e00ca2cb621c4f81ad9fb2f31769bf575f8d0","size":4814,"noattachment":false,"key":"/@simple-libs/hosted-git-info/-/@simple-libs/hosted-git-info-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@simple-libs/hosted-git-info/download/@simple-libs/hosted-git-info-1.0.2.tgz"},"_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"directories":{},"maintainers":[{"name":"dangreen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hosted-git-info_1.0.2_1772390219349_0.47384075779798907"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-01T18:36:59.483Z","publish_time":1772390219483,"_source_registry_name":"default","_cnpm_publish_time":1772390219483},"1.0.1":{"name":"@simple-libs/hosted-git-info","type":"module","version":"1.0.1","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/master/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.1","_integrity":"sha512-R8/PbLKPw5iLeULJgnvwIKkggeyzwXPFERp+4itc0zSrG4sUTf23w7JlMSImPD2o+ZRpEv7YgG6IXgSk87jTgw==","_resolved":"/private/var/folders/hj/7x3kc5l135jbhq3tcwc_y2zh0000gn/T/f7a9889b0bacbbbeba8ab3daaacf8b8d/simple-libs-hosted-git-info-1.0.1.tgz","_from":"file:simple-libs-hosted-git-info-1.0.1.tgz","_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"shasum":"455c32b86bdd0a0a5b51b9620d6fe919b81e6faf","size":4771,"noattachment":false,"key":"/@simple-libs/hosted-git-info/-/@simple-libs/hosted-git-info-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@simple-libs/hosted-git-info/download/@simple-libs/hosted-git-info-1.0.1.tgz"},"_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"directories":{},"maintainers":[{"name":"dangreen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hosted-git-info_1.0.1_1748820569473_0.10309829436063755"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-01T23:29:29.656Z","publish_time":1748820569656,"_source_registry_name":"default","_cnpm_publish_time":1748820569656},"1.0.0":{"name":"@simple-libs/hosted-git-info","type":"module","version":"1.0.0","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/master/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"},"scripts":{"clear:package":"del ./package","clear:dist":"del ./dist","clear":"del ./package ./dist ./coverage","build":"tsc -p tsconfig.build.json","lint":"eslint --parser-options tsconfigRootDir:. '**/*.{js,ts}'","test:unit":"vitest run --coverage","test:types":"tsc --noEmit","test":"run -p lint test:unit test:types"},"_id":"@simple-libs/hosted-git-info@1.0.0","_integrity":"sha512-ljI1ZeWHmgLqVus68wMFw1A/WmOuMPNxjxzHOJkRbdQ8jvq0icYn9wSTiQ3WOLoH86Y0w64Yr5Xczr7tfH9P1w==","_resolved":"/private/var/folders/hj/7x3kc5l135jbhq3tcwc_y2zh0000gn/T/1cce8f2baca99c61def11243f743b693/simple-libs-hosted-git-info-1.0.0.tgz","_from":"file:simple-libs-hosted-git-info-1.0.0.tgz","_nodeVersion":"22.4.1","_npmVersion":"10.8.1","dist":{"shasum":"7fdb61b89967d6ef5164472658ebd98f35d286a5","size":13879,"noattachment":false,"key":"/@simple-libs/hosted-git-info/-/@simple-libs/hosted-git-info-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@simple-libs/hosted-git-info/download/@simple-libs/hosted-git-info-1.0.0.tgz"},"_npmUser":{"name":"dangreen","email":"danon0404@gmail.com"},"directories":{},"maintainers":[{"name":"dangreen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hosted-git-info_1.0.0_1748460557964_0.008444524206774773"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-28T19:29:18.194Z","publish_time":1748460558194,"_source_registry_name":"default","_cnpm_publish_time":1748460558194}},"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","_attachments":{},"homepage":"https://github.com/TrigenSoftware/simple-libs/tree/main/packages/hosted-git-info#readme","bugs":{"url":"https://github.com/TrigenSoftware/simple-libs/issues"},"license":"MIT"}