{"_id":"@hutson/parse-repository-url","_rev":"225542","name":"@hutson/parse-repository-url","description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"hutson","email":""}],"time":{"modified":"2021-06-03T15:42:31.000Z","created":"2018-12-21T23:30:41.333Z","5.0.0":"2020-02-16T23:26:31.405Z","4.0.4":"2019-10-31T02:48:57.513Z","4.0.3":"2019-07-26T02:50:46.969Z","4.0.2":"2019-04-24T20:55:25.919Z","4.0.1":"2019-04-22T03:43:38.975Z","4.0.0":"2019-04-16T03:30:45.891Z","3.0.2":"2019-03-28T05:23:57.952Z","3.0.1":"2019-01-19T22:14:07.212Z","3.0.0":"2018-12-21T23:30:41.333Z"},"users":{},"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://hyper-expanse.net/hutson"},"repository":{"type":"git","url":"git+https://github.com/hyper-expanse/parse-repository-url.git"},"versions":{"5.0.0":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://hyper-expanse.net/hutson"},"bugs":{"url":"https://github.com/hyper-expanse/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=10.13.0"},"homepage":"https://github.com/hyper-expanse/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","mocha":{"checkLeaks":true,"fullTrace":true,"inlineDiffs":true,"recursive":true,"reporter":"progress"},"name":"@hutson/parse-repository-url","nyc":{"all":true,"exclude":["src/cli.js","src/**/*.spec.js","src/**/*.mock.js"],"include":["src/**/*.js"],"reporter":["lcov","text"]},"repository":{"type":"git","url":"git+https://github.com/hyper-expanse/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha src/**/*.spec.js"},"version":"5.0.0","dependencies":{},"devDependencies":{"chai":"^4.2.0","debug":"^4.1.0","mocha":"^6.1.4","nyc":"^14.0.0","semistandard":"^14.0.0"},"gitHead":"619b06bd9b47b852218a2c00e9542123e5485e37","_id":"@hutson/parse-repository-url@5.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.7","dist":{"shasum":"bf344cc75136039bc41bcf5d1ddbcb40405fca3b","size":7735,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-5.0.0.tgz"},"maintainers":[{"name":"hutson","email":""}],"_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_5.0.0_1581895591245_0.1829700599703441"},"_hasShrinkwrap":false,"publish_time":1581895591405,"_cnpm_publish_time":1581895591405},"4.0.4":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=8.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","mocha":{"checkLeaks":true,"fullTrace":true,"inlineDiffs":true,"recursive":true,"reporter":"progress"},"name":"@hutson/parse-repository-url","nyc":{"all":true,"exclude":["src/cli.js","src/**/*.spec.js","src/**/*.mock.js"],"include":["src/**/*.js"],"reporter":["lcov","text"]},"renovate":{"extends":["config:base",":maintainLockFilesWeekly",":rebaseStalePrs",":automergeDigest",":gitSignOff",":automergeMinor",":preserveSemverRanges"],"docker":{"pinDigests":true}},"repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha src/**/*.spec.js"},"version":"4.0.4","devDependencies":{"chai":"^4.2.0","debug":"^4.1.0","mocha":"^6.1.4","nyc":"^14.0.0","semistandard":"^13.0.1"},"_id":"@hutson/parse-repository-url@4.0.4","gitHead":"4848611b0e62ec81fb9bbde672d3bcc4a219b376","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"4c996c8f526eaac2885c3783569917e0b76381f1","size":7870,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-4.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-4.0.4.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_4.0.4_1572490137400_0.8367709912661243"},"_hasShrinkwrap":false,"publish_time":1572490137513,"_cnpm_publish_time":1572490137513},"4.0.3":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=8.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","mocha":{"checkLeaks":true,"fullTrace":true,"inlineDiffs":true,"recursive":true,"reporter":"progress"},"name":"@hutson/parse-repository-url","nyc":{"all":true,"exclude":["src/cli.js","src/**/*.spec.js","src/**/*.mock.js"],"include":["src/**/*.js"],"reporter":["lcov","text"]},"renovate":{"extends":["config:base",":maintainLockFilesWeekly",":rebaseStalePrs",":automergeDigest",":gitSignOff",":automergeMinor",":preserveSemverRanges"],"docker":{"pinDigests":true}},"repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha src/**/*.spec.js"},"version":"4.0.3","devDependencies":{"chai":"^4.2.0","debug":"^4.1.0","mocha":"^6.1.4","nyc":"^14.0.0","semistandard":"^13.0.1"},"_id":"@hutson/parse-repository-url@4.0.3","gitHead":"1c1fb51a8757fc86b1f792ba1ef815b8c9dfb40c","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"16c166f0fc00d6e17413078bbd6b0f09e0c6b714","size":7813,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-4.0.3.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_4.0.3_1564109446856_0.9666896761023716"},"_hasShrinkwrap":false,"publish_time":1564109446969,"_cnpm_publish_time":1564109446969},"4.0.2":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=8.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","mocha":{"checkLeaks":true,"fullTrace":true,"inlineDiffs":true,"recursive":true,"reporter":"progress"},"name":"@hutson/parse-repository-url","nyc":{"all":true,"exclude":["src/cli.js","src/**/*.spec.js","src/**/*.mock.js"],"include":["src/**/*.js"],"reporter":["lcov","text"]},"renovate":{"extends":["config:base",":maintainLockFilesWeekly",":rebaseStalePrs",":automergeDigest",":gitSignOff",":automergeMinor",":preserveSemverRanges"]},"repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha src/**/*.spec.js"},"version":"4.0.2","devDependencies":{"chai":"^4.2.0","debug":"^4.1.0","mocha":"^6.0.0","nyc":"^13.1.0","semistandard":"^13.0.1"},"_id":"@hutson/parse-repository-url@4.0.2","gitHead":"4a16126825d773f49d9e67aff30e2a8fbbd6983b","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"ece3ccbf3c621df9316e3ac566c0bbcae130426a","size":7789,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-4.0.2.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_4.0.2_1556139325786_0.946729710833254"},"_hasShrinkwrap":false,"publish_time":1556139325919,"_cnpm_publish_time":1556139325919},"4.0.1":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=8.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","mocha":{"checkLeaks":true,"fullTrace":true,"inlineDiffs":true,"recursive":true,"reporter":"progress"},"name":"@hutson/parse-repository-url","nyc":{"all":true,"exclude":["src/cli.js","src/**/*.spec.js","src/**/*.mock.js"],"include":["src/**/*.js"],"reporter":["lcov","text"]},"renovate":{"extends":["config:base",":maintainLockFilesWeekly",":rebaseStalePrs",":automergeDigest",":gitSignOff",":automergeMinor",":preserveSemverRanges"]},"repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha src/**/*.spec.js"},"version":"4.0.1","devDependencies":{"chai":"^4.2.0","debug":"^4.1.0","mocha":"^6.0.0","nyc":"^13.1.0","semistandard":"^13.0.1"},"_id":"@hutson/parse-repository-url@4.0.1","gitHead":"6f34a969047a4a5b0b437bd0a3f152bbb0b8bfd2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"37f745ed5b8036cc519d065e3f58841d487841c8","size":7766,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-4.0.1.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_4.0.1_1555904618848_0.9292302255991554"},"_hasShrinkwrap":false,"publish_time":1555904618975,"_cnpm_publish_time":1555904618975},"4.0.0":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=8.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","mocha":{"checkLeaks":true,"fullTrace":true,"inlineDiffs":true,"recursive":true,"reporter":"progress"},"name":"@hutson/parse-repository-url","nyc":{"all":true,"exclude":["src/cli.js","src/**/*.spec.js","src/**/*.mock.js"],"include":["src/**/*.js"],"reporter":["lcov","text"]},"renovate":{"extends":["config:base",":maintainLockFilesWeekly",":rebaseStalePrs",":automergeDigest",":gitSignOff",":automergeMinor",":preserveSemverRanges"]},"repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha src/**/*.spec.js"},"version":"4.0.0","devDependencies":{"@hutson/conventional-changelog-config":"^2.0.0","chai":"^4.2.0","debug":"^4.1.0","mocha":"^6.0.0","nyc":"^13.1.0","semantic-release-gitlab":"^8.0.1","semistandard":"^13.0.1"},"_id":"@hutson/parse-repository-url@4.0.0","gitHead":"2ed0344ef689cb850301b2c71ecf9b7fca921448","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"9d57e28f66315f7fcad8f36f630529e61194b62a","size":7526,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-4.0.0.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_4.0.0_1555385445479_0.45565329393711185"},"_hasShrinkwrap":false,"publish_time":1555385445891,"_cnpm_publish_time":1555385445891},"3.0.2":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=6.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","name":"@hutson/parse-repository-url","repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"test":"semistandard 'src/**/*.js' && nyc mocha --opts mocha.opts src/**/*.spec.js"},"version":"3.0.2","devDependencies":{"@hutson/conventional-changelog-config":"^2.0.0","@hutson/nyc-config":"^2.0.0","chai":"^4.2.0","codecov":"^3.1.0","debug":"^4.1.0","mocha":"^5.2.0","npm-publish-git-tag":"^3.0.0","nyc":"^13.1.0","semantic-release-gitlab":"^7.0.10","semistandard":"^13.0.1"},"_id":"@hutson/parse-repository-url@3.0.2","gitHead":"2f0b506c05aeedfc8e313cca3f0db9ef530937c5","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"98c23c950a3d9b6c8f0daed06da6c3af06981340","size":7352,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-3.0.2.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_3.0.2_1553750637812_0.6163460867851649"},"_hasShrinkwrap":false,"publish_time":1553750637952,"_cnpm_publish_time":1553750637952},"3.0.1":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=6.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","name":"@hutson/parse-repository-url","repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"dev":"docker run --rm --user node -v \"$(pwd)\":/app -w /app -it node:6 sh -c \"yarn install; yarn test; bash\"","test":"eslint src/ && nyc mocha --opts mocha.opts src/**/*.spec.js"},"version":"3.0.1","devDependencies":{"@hutson/conventional-changelog-config":"^2.0.0","@hutson/eslint-config":"^3.0.0","@hutson/nyc-config":"^2.0.0","chai":"^4.2.0","codecov":"^3.1.0","debug":"^4.1.0","eslint":"^5.7.0","mocha":"^5.2.0","npm-publish-git-tag":"^3.0.0","nyc":"^13.1.0","semantic-release-gitlab":"^7.0.10"},"_id":"@hutson/parse-repository-url@3.0.1","gitHead":"f86792d170ed325402630d5b6f31d6a1e581453d","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"b9a7daec81cf1fa9cf5dc01576536d50cb9db899","size":7418,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-3.0.1.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_3.0.1_1547936047126_0.15603656192361726"},"_hasShrinkwrap":false,"publish_time":1547936047212,"_cnpm_publish_time":1547936047212},"3.0.0":{"author":{"name":"Hutson Betts","email":"hutson@hyper-expanse.net","url":"https://gitlab.com/hutson"},"bin":{},"bugs":{"url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url/issues"},"description":"Parse repository URLs to extract, SCM platform, domain, user, and project information.","engines":{"node":">=6.9.0"},"homepage":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url#readme","keywords":["parser","repository-url"],"license":"Apache-2.0","main":"src/index.js","name":"@hutson/parse-repository-url","repository":{"type":"git","url":"https://gitlab.com/hyper-expanse/open-source/parse-repository-url.git"},"scripts":{"dev":"docker run --rm --user node -v \"$(pwd)\":/app -w /app -it node:6 sh -c \"yarn install; yarn test; bash\"","test":"eslint src/ && nyc mocha --opts mocha.opts src/**/*.spec.js"},"version":"3.0.0","devDependencies":{"@hbetts/conventional-changelog-config":"^1.0.0","@hbetts/eslint-config":"^2.0.0","@hbetts/nyc-config":"^1.0.13","chai":"^4.2.0","codecov":"^3.1.0","debug":"^4.1.0","eslint":"^5.7.0","mocha":"^5.2.0","npm-publish-git-tag":"^3.0.0","nyc":"^13.1.0","semantic-release-gitlab":"^7.0.10"},"_id":"@hutson/parse-repository-url@3.0.0","gitHead":"8cea066194771fce2cc0f2ac5f48b677a25b32c2","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"hutson","email":"hutson@hyper-expanse.net"},"dist":{"shasum":"3fa172e3006f36e547fb49835bf25fc487a29f1c","size":8808,"noattachment":false,"key":"/@hutson/parse-repository-url/-/@hutson/parse-repository-url-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@hutson/parse-repository-url/download/@hutson/parse-repository-url-3.0.0.tgz"},"maintainers":[{"name":"hutson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repository-url_3.0.0_1545435041206_0.3950082803472257"},"_hasShrinkwrap":false,"publish_time":1545435041333,"_cnpm_publish_time":1545435041333}},"readme":"# @hutson/parse-repository-url\n\n> Parse repository URLs to extract, SCM platform, domain, user, and project information.\n\nOccasionally you need to take a Git repository URL, such as `https://gitlab.com/gitlab-org/gitlab-ce` and extract the user/group and project name from the URL for use in other tools and processes.\n\n`@hutson/parse-repository-url` helps to extract that information from many valid Git URLs strings that you might encounter, including for platforms like GitLab, GitHub, and their various use cases, such as hosted, on-premise, and multiple sub-groups.\n\n## Table of Contents\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Security Disclosure Policy](#security-disclosure-policy)\n- [Professional Support](#professional-support)\n- [Debugging](#debugging)\n- [Node Support Policy](#node-support-policy)\n- [Contributing](#contributing)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Features\n\n* [x] Return `browse` function that returns URL usable in a browser. (Similar to [`hosted-git-info`](https://github.com/npm/hosted-git-info/blob/5d2cc4a8c93012387a86a0afa1384ccf7ac31084/README.md#methods))\n* [x] Return `domain` property containing the fully qualified domain name and port.\n* [x] Return `project` property.\n* [x] Return `type` property indicating the SCM host, such as `github` or `gitlab`.\n* [x] Return `user` property.\n\n> **Note:* Returns `null` for any property where the information could not be extracted from the repository URL.\n\n## Installation\n\nTo install the `@hutson/parse-repository-url` tool for use in your project's publish process please run the following command:\n\n```bash\nyarn add [--dev] @hutson/parse-repository-url\n```\n\n## Usage\n\n```javascript\nconst parseRepositoryURL = require(`@hutson/parse-repository-url`);\n\n/*{\n  browse: [Function],\n  domain: 'github.com',\n  project: 'project',\n  type: 'github',\n  user: 'user'\n}*/\nparseRepositoryURL(`https://github.com/user/project`);\n\n/*{\n  browse: [Function],\n  domain: 'git.example.com',\n  project: 'project',\n  type: null,\n  user: 'user'\n}*/\nparseRepositoryURL(`https://git.example.com/user/project`);\n\n/*{\n  browse: [Function],\n  domain: 'github.com',\n  project: 'project',\n  type: 'github',\n  user: 'user'\n}*/\nparseRepositoryURL(`git@github.com:user/project`);\n\n/*{\n  browse: [Function],\n  domain: 'somewhere',\n  project: null,\n  type: null,\n  user: null\n}*/\nparseRepositoryURL(`https://somewhere`);\n```\n\nCheck out the `index.spec.js` file under the `src/` directory for a full list of URLs that can be parsed for GitLab, GitHub, including hosted, on-premise, and multiple sub-groups.\n\n## Security Disclosure Policy\n\nTo report a security vulnerability in this package, or one of it's dependencies, please use the [Tidelift security contact](https://tidelift.com/security) page. Tidelift will coordinate the process to address the vulnerability and disclose the incident to our users.\n\n## Enterprise Support\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `@hutson/parse-repository-url` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-hutson-parse-repository-url?utm_source=npm-hutson-parse-repository-url&utm_medium=referral&utm_campaign=enterprise)\n\n## Debugging\n\nTo assist users of `@hutson/parse-repository-url` with debugging the behavior of this module we use the [debug](https://www.npmjs.com/package/debug) utility package to print information about the publish process to the console. To enable debug message printing, the environment variable `DEBUG`, which is the variable used by the `debug` package, must be set to a value configured by the package containing the debug messages to be printed.\n\nTo print debug messages on a unix system set the environment variable `DEBUG` with the name of this package prior to executing `@hutson/parse-repository-url`:\n\n```bash\nDEBUG=@hutson/parse-repository-url [CONSUMING TOOL]\n```\n\nOn the Windows command line you may do:\n\n```bash\nset DEBUG=@hutson/parse-repository-url\n[CONSUMING TOOL]\n```\n\n## Node Support Policy\n\nWe only support [Long-Term Support](https://github.com/nodejs/LTS) versions of Node.\n\nWe specifically limit our support to LTS versions of Node, not because this package won't work on other versions, but because we have a limited amount of time, and supporting LTS offers the greatest return on that investment.\n\nIt's possible this package will work correctly on newer versions of Node. It may even be possible to use this package on older versions of Node, though that's more unlikely as we'll make every effort to take advantage of features available in the oldest LTS version we support.\n\nAs each Node LTS version reaches its end-of-life we will remove that version from the `node` `engines` property of our package's `package.json` file. Removing a Node version is considered a breaking change and will entail the publishing of a new major version of this package. We will not accept any requests to support an end-of-life version of Node. Any merge requests or issues supporting an end-of-life version of Node will be closed.\n\nWe will accept code that allows this package to run on newer, non-LTS, versions of Node. Furthermore, we will attempt to ensure our own changes work on the latest version of Node. To help in that commitment, our continuous integration setup runs against all LTS versions of Node in addition the most recent Node release; called _current_.\n\nJavaScript package managers should allow you to install this package with any version of Node, with, at most, a warning if your version of Node does not fall within the range specified by our `node` `engines` property. If you encounter issues installing this package, please report the issue to your package manager.\n\n## Contributing\n\nPlease read our [contributing guide](https://github.com/hyper-expanse/parse-repository-url/blob/master/contributing.md) to see how you may contribute to this project.\n","_attachments":{},"homepage":"https://github.com/hyper-expanse/parse-repository-url#readme","bugs":{"url":"https://github.com/hyper-expanse/parse-repository-url/issues"},"license":"Apache-2.0"}