{"_id":"is-github-url","_rev":"10-bef68143f7dd50a2c86b974852145e7f","name":"is-github-url","description":"Check if a passed string is a valid GitHub URL","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"is-github-url","version":"1.0.0","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"ae2efae013597f4a09599b9d9e4e4380add6c411","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.0.0","_shasum":"4ee3353633c43d6d4a061f8585c8a11998ceb01d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"4ee3353633c43d6d4a061f8585c8a11998ceb01d","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.0.0.tgz","integrity":"sha512-OZHdh7Z2DU1RYNkjrGZarqAE4H36PSjhr9owBU2jURZJYfwnWULPwnFY++xmYLQa4zf6JQdHXdrYn2o5Ar6xug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn8ZdMILUqJP/SsDlaDezCC+QzdKuRkjcuXpBEQNLI8QIgc//bPM6BVhcpx3eeVpFEM/zes4SxtyU0cKjoRHTnw2I="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.0.2":{"name":"is-github-url","version":"1.0.2","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"6c3ce01db35d5a208751fb2bed678eca364cfdf2","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.0.2","_shasum":"b03965adeef532960f079c5e2ea024ad428a05fd","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"b03965adeef532960f079c5e2ea024ad428a05fd","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.0.2.tgz","integrity":"sha512-3WcajU6lquiyroV/fK11qdvohNxRfCAqW54ltBKohaiSk8q+txK/SUPHdu8B31W7xRKlB3eaSCtDVNdR2ASgBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6X8VvVEdMHHw1RI0n8s6pLyIaRQ9fQ7lMoYYPb6ZAyQIhAJDoqEGh0nIRZgpdmJOCrpt0nZrkVv7eDqQZ//tU4onN"}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.1.0":{"name":"is-github-url","version":"1.1.0","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"f8b610f52d73609379ca484b0a63bd14183e8dc6","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.1.0","_shasum":"5a0b34e2a5e77ac6ee329f1ef66e6f06c8af32ff","_from":".","_npmVersion":"2.14.4","_nodeVersion":"0.12.7","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"5a0b34e2a5e77ac6ee329f1ef66e6f06c8af32ff","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.1.0.tgz","integrity":"sha512-sYgMHB3WexRT/of2YW0jlBsyClcosA179UTKN6f2c3Exa235NA9fTMJue2Q2JwzxHWV//2ZlG02Mg2Z/OZ35hQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbhuZxhnfHV+rzru2mlf+O/aTzOk2um5/7o59iYCYAWgIgEsy4iptx0PVJBiJ9AIeM1QFmqd3e5/uQOv/1BYY/yAU="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.1.1":{"name":"is-github-url","version":"1.1.1","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"c1c17b3cd275f920c88b6bc7195fd0ddbde6220c","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.1.1","_shasum":"4df45d563602e30ae4dd3b2339db07d662e33347","_from":".","_npmVersion":"2.14.4","_nodeVersion":"0.12.7","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"4df45d563602e30ae4dd3b2339db07d662e33347","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.1.1.tgz","integrity":"sha512-j2yfV9TLfMleT7Tl3klFp8Kb1xy/aJF2lHAqKnkMz/25fAFSqHKLIkXvSd8o2ebJCNb4QZrWyiHKOHc0+Z5ZDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICu2Sh6ezuLecG6x0eqmD49KHm5BvLTcq6ZgvasyWJqHAiEAqrw7tlZi5V9P4LekVhOePfarySeTbNH7Zw4/JLjHlCk="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.1.2":{"name":"is-github-url","version":"1.1.2","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"da1b761e08637897659a84dcc6cd422244670139","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.1.2","_shasum":"489612eb589b5ef1e969ec3945a1172c2473d6ee","_from":".","_npmVersion":"2.14.4","_nodeVersion":"0.12.7","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"489612eb589b5ef1e969ec3945a1172c2473d6ee","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.1.2.tgz","integrity":"sha512-nS81V45mTzW6iB8ido9fEXxTJjZY+7yc0EhMrvShy3VfSH8ZYknJIz2UOr7gut/bQ2tJlynpaRRV73JIWJ20Bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVERwApi1lz4CguX3QQ9U0lM2+zjRzdh96AnXY5tuAxAiEA5XxIyk5rRedGsZmiuFCw04ODHnc+7ZEQ5CawGA7Uils="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.2.0":{"name":"is-github-url","version":"1.2.0","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch","hello":"echo \"Hello $(node node_modules/jop/bin/main package.json --prop version | xargs)\"","release":"npm version ${BUMP:-\"patch\"} --no-git-tag-version && git add package.json && git commit -m \":octocat: Bump to $(cat package.json | jq -r .version)\" && git tag $(cat package.json | jq -r .version) && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","jop":"^1.0.4","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"license":"MIT","gitHead":"95467f7d9e296271c9c02ed0fe8abc8d31cc189c","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.2.0","_shasum":"e37db51c4aa027cdb47f2f4f1e5183e2e56936a0","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"e37db51c4aa027cdb47f2f4f1e5183e2e56936a0","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.2.0.tgz","integrity":"sha512-94ElODbgRu42eadtvhBhLlyX+d/Hk21r7QFFCHacPO2j/lHEdNkAkBHsk/9iO4Lj18/QfyCwlZ7vmiwfQBlBXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHMSYFCiVfS9fePjp3JgLqU2ExEd8c9/FzVslKbAY13LAiEApETcU51FCdMWGzKPcW5Zo09z8pIPefZ9T3mUtRiW4zA="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.2.1":{"name":"is-github-url","version":"1.2.1","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch","hello":"echo \"Hello $(node node_modules/jop/bin/main package.json --prop version | xargs)\"","release":"npm version ${BUMP:-\"patch\"} --no-git-tag-version && git add package.json && git commit -m \":octocat: Bump to $(cat package.json | jq -r .version)\" && git tag $(cat package.json | jq -r .version) && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","jop":"^1.0.4","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"license":"MIT","gitHead":"27f7463c50148564a756647a236d3569d08450fe","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.2.1","_shasum":"aaae3fed1d305d1ea919b8a66f07b7f8c85fd69a","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"aaae3fed1d305d1ea919b8a66f07b7f8c85fd69a","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.2.1.tgz","integrity":"sha512-RsiL2sMDg7FnxbLXykjfo0WttTBZZvCwYxXcR5z/25m8edz6wt5p+SBqOO4Oi9h/PJGyC9ZvuzFzEGtbvCaLvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG47vuvEvWc5cH9Ky2hkMt5JGXRDHziYPHLEqGXUrYebAiEAiWDq2FcVqY7KLa2OoNanqZs9rxKm0mKhb5d0dRuf4lw="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]},"1.2.2":{"name":"is-github-url","version":"1.2.2","description":"Check if a passed string is a valid GitHub URL","main":"index.js","scripts":{"test":"mocha --reporter nyan","tdd":"npm test -- --watch","release":"npm version ${BUMP:-\"patch\"} --no-git-tag-version && git add package.json && git commit -m \":octocat: Bump to $(cat package.json | jq -r .version)\" && git tag $(cat package.json | jq -r .version) && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"keywords":["gh","github","git","valid","url","string"],"devDependencies":{"chai":"^3.2.0","eslint":"^1.4.1","mocha":"^2.3.0"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"license":"MIT","gitHead":"107f39bc9699ba0930cdfd646b46de6adadc0828","bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"homepage":"https://github.com/alferov/is-github-url#readme","_id":"is-github-url@1.2.2","_shasum":"0734176092c9599a38a72422d121ff3e11d6ff3e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"alferov","email":"philipp.alferov@gmail.com"},"dist":{"shasum":"0734176092c9599a38a72422d121ff3e11d6ff3e","tarball":"https://registry.npmjs.org/is-github-url/-/is-github-url-1.2.2.tgz","integrity":"sha512-TuiCHA5zadRVryd5gDJzPZj7yJbyMeR2r7IK/gF9z2MZwPF+A7ML9YYO8CwzdLsmxeTmxlmC6GKIeQBWJFFMQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAs+r+dskG7pHypgiA8zvUl2SuzkvsosnZ6LpmfOhSpXAiBCCMP4mpU3WqBQ/FgLQjgoXPfAdwu83kZUtJW7WCkm2A=="}]},"maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}]}},"readme":"# is-github-url [![Build Status](https://travis-ci.org/alferov/is-github-url.svg?branch=master)](https://travis-ci.org/alferov/is-github-url)\n\n>  Check if a passed string is a valid GitHub URL\n\nUnlike [is-git-url](https://github.com/jonschlinkert/is-git-url), is-github-url is a domain-specific validator. It returns `true` if passed URL is a part of `github.com` domain only.\n\n## Installation\n```\n$ npm install is-github-url --save\n```\n\n## Usage\n```js\nvar isGithubUrl = require('is-github-url');\n\n// Valid examples\nisGithubUrl('https://github.com/facebook');\n // => true\nisGithubUrl('https://github.com/facebook/react');\n // => true\nisGithubUrl('https://github.com/facebook/react/releases/tag/v0.14.0');\n// => true\nisGithubUrl('git@github.com:facebook/react.git');\n// => true\nisGithubUrl('git://github.com/facebook/react.git#gh-pages');\n// => true\n\n// Invalid examples\nisGithubUrl('https://google.com');\n // => false\nisGithubUrl('unknown://github.com');\n// => false\nisGithubUrl('http://facebook.github.io/');\n// => false\n\n// Repository mode can be used to check whether a passed URL\n// is a valid repository URL\nisGithubUrl('https://github.com/facebook/react', { repository: true });\n// => true\nisGithubUrl('https://github.com/facebook', { repository: true });\n// => false\nisGithubUrl('https://github.com/facebook/react/releases/tag/v0.14.0', {\n  repository: true\n});\n// => false\n\n// Strict mode is used to validate URLs before cloning\n// Strict mode turns on automatically if URL contains git protocol\nisGithubUrl('https://github.com/facebook/react.git', { strict: true });\n// => true\nisGithubUrl('https://github.com/facebook/react', { strict: true });\n// => false\n```\n\n## API\n### `isGithubUrl(url, [options])`\nCheck if a passed string is a valid GitHub URL\n\n#### Params\n- **String** `url`: A string to be validated\n- **Object** `options`: An object containing the following fields:\n  - `strict` (Boolean): Match only URLs ending with .git\n  - `repository` (Boolean): Match only valid GitHub repo URLs\n\n## License\nMIT © [Philipp Alferov](https://github.com/alferov)\n","maintainers":[{"name":"alferov","email":"philipp.alferov@gmail.com"}],"time":{"modified":"2022-06-19T02:42:13.103Z","created":"2015-10-15T01:49:19.012Z","1.0.0":"2015-10-15T01:49:19.012Z","1.0.2":"2015-10-16T21:37:13.293Z","1.1.0":"2015-10-21T23:27:54.373Z","1.1.1":"2015-10-21T23:28:53.231Z","1.1.2":"2015-10-22T00:03:02.814Z","1.2.0":"2015-11-05T21:29:51.117Z","1.2.1":"2015-12-30T19:06:13.573Z","1.2.2":"2016-01-21T02:54:37.822Z"},"homepage":"https://github.com/alferov/is-github-url#readme","keywords":["gh","github","git","valid","url","string"],"repository":{"type":"git","url":"git+https://github.com/alferov/is-github-url.git"},"author":{"name":"Philipp Alferov","email":"philipp.alferov@gmail.com"},"bugs":{"url":"https://github.com/alferov/is-github-url/issues"},"license":"MIT","readmeFilename":"readme.md"}