{"name":"github-url-to-object","version":"4.0.5","description":"Extract user, repo, and other interesting properties from GitHub URLs","main":"dist/commonjs.js","scripts":{"test":"mocha && standard","build":"browserify index.js --standalone gh | buble > dist/gh.js; buble index.js > dist/commonjs.js","deploy":"npm run build && git subtree push --prefix dist origin gh-pages && open https://zeke.github.io/github-url-to-object"},"website":"https://zeke.github.io/github-url-to-object","repository":{"type":"git","url":"git+https://github.com/zeke/github-url-to-object.git"},"keywords":["github","url","repo"],"author":{"name":"zeke"},"license":"MIT","bugs":{"url":"https://github.com/zeke/github-url-to-object/issues"},"dependencies":{"is-url":"^1.1.0"},"devDependencies":{"browserify":"^13.0.1","buble":"^0.15.2","mocha":"^2.5.3","standard":"^7.1.2","uglify-js":"^2.4.15"},"standard":{"ignore":["dist"]},"gitHead":"98b808d7323b6e27cbf3f5c3a9a62ef5f18ef93f","homepage":"https://github.com/zeke/github-url-to-object#readme","_id":"github-url-to-object@4.0.5","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-M630fFDz1Zo+dLr3xMUpnn8MFITh6ag/uq6GVPtfzKC8JHnTZcqbE1EziqYgdfK+LTTSTMSpwchEnV9yCLgxWQ==","shasum":"3f84a72e596bbd849e1b5084bff4afd511cd5e48","tarball":"http://registry-npm.ywwl.com/github-url-to-object/download/github-url-to-object-4.0.5.tgz","fileCount":10,"unpackedSize":29030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggEKHCRA9TVsSAnZWagAA8z4P/1hvkISj1m6Fkz6tiYPF\noXeAuFWF8pWRXZ86jcxa3L+kL1HOCjr+mNzrsRsEc2XGVZnLZqHufOXnMqX0\n0Mfp2jI9X4vfJJw8kTLc08fEUHpMO70HIRmQMnOLWINP//M6wmRNRveRWkyV\nXjqo6XO2ryITWH8iX3m3s1ivPqe4ntJzCVU6Gty+3muGr3K6r3QDhDk8aQjq\n+3MU4miHbEPwN3biCZznQ/zJQKytVBwQpaehDA9s21d0xv9LOCA2HjisD8Mf\n3Gr81NMuWZg8fIdtp1O9aCmQur45j04fTi5k6M5Hm+6EdCenJCTBA/ILS/9B\nN+eaNFzqdJdJs/97PTIK61+a9SiVJWete06nVWltjfzKtsA8nOIJg2C1nOKy\nFuXeKpwrXL/YRriuLs/6riUhAbNBAwS0AaVVsktbmhj5yw+YGqzDueSIqiHG\nybWs4Tx47MVW9X8ZCxDYhR1w6AMnJIdclRajFcihWBsRmNmrArScowuM/9wK\nVZvCvnks3YJaZ9BQ6GEgckef5Q6nsUtDxY2y9TJOeAwXf971Qqefc3y6ohTS\nkl6+dpeoKUEgG1TgU+tqYg9Iq4vUnXDtYS/X7A08oxIPB2ThyrcyZI4HD9Ea\ng8qgrmIC9/ekkHue8q6c9ht8Fx1H8zQ1vjrMvhfhJ7DWNjZ580HHcEsIr39g\n9w7b\r\n=+tqG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRzXyBnY192l/xdClSgVEkF6pVMnMbpDmRL7piWDgaQgIhANZz7sVdgn53bOAza3YCWEOKGkOq/WyfWnylvKidyCjZ"}],"size":5671,"noattachment":false,"key":"/github-url-to-object/-/github-url-to-object-4.0.5.tgz"},"_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"directories":{},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/github-url-to-object_4.0.5_1619018375496_0.6572369363797039"},"_hasShrinkwrap":false,"readme":"# github-url-to-object  [![Build Status](https://travis-ci.org/zeke/github-url-to-object.png?branch=master)](https://travis-ci.org/zeke/github-url-to-object)\n\nA module for node.js and browsers that extracts useful properties like `user`,\n`repo`, and `branch` from various flavors of GitHub URLs.\n\nThere's also a Bitbucket equivalent to this library: [bitbucket-url-to-object](https://github.com/zeke/bitbucket-url-to-object).\n\nCheck out the demo at [zeke.github.io/github-url-to-object](https://zeke.github.io/github-url-to-object).\n\n## Installation\n\nFor Node.js or Browserify usage:\n\n```sh\nnpm i github-url-to-object\n```\n\nFor bower usage:\n\n```sh\nbower install github-url-to-object\n```\n\n## Usage\n\nUse whatever flavor of GitHub URL you like:\n\n```js\nconst gh = require('github-url-to-object')\n\ngh('github:monkey/business')\ngh('https://github.com/monkey/business')\ngh('https://github.com/monkey/business/tree/master')\ngh('https://github.com/monkey/business/tree/master/nested/file.js')\ngh('https://github.com/monkey/business.git')\ngh('http://github.com/monkey/business')\ngh('git://github.com/monkey/business.git')\ngh('git+https://github.com/monkey/business.git')\n```\n\nHere's what you'll get:\n\n```js\n{\n  user: 'monkey',\n  repo: 'business',\n  branch: 'master',\n  tarball_url: 'https://api.github.com/repos/monkey/business/tarball/master',\n  clone_url: 'https://github.com/monkey/business',\n  https_url: 'https://github.com/monkey/business',\n  travis_url: 'https://travis-ci.org/monkey/business',\n  api_url: 'https://api.github.com/repos/monkey/business'\n  zip_url: 'https://github.com/monkey/business/archive/master.zip'\n}\n```\n\nThe shorthand form lets you specify a branch:\n\n```js\ngh('github:monkey/business#nachos')\n```\n\n```js\n{\n  user: 'monkey',\n  repo: 'business',\n  branch: 'nachos',\n  https_url: 'https://github.com/monkey/business/blob/nachos',\n  tarball_url: 'https://api.github.com/repos/monkey/business/tarball/nachos',\n  clone_url: 'https://github.com/monkey/business',\n  travis_url: 'https://travis-ci.org/monkey/business?branch=nachos',\n  api_url: 'https://api.github.com/repos/monkey/business'\n  zip_url: 'https://github.com/monkey/business/archive/nachos.zip'\n}\n```\n\nIf you provide a non-GitHub URL or a falsey value, you'll get `null`.\n\n### GitHub Enterprise\n\nIf you're using GitHub Enterprise, pass the `enterprise` option to allow\nyour non-`github.com` URL to be parsed:\n\n```js\ngh('https://ghe.example.com:heroku/heroku-flags.git', { enterprise: true })\n```\n\n## Test\n\n```sh\nnpm install\nnpm test\n```\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n## License\n\nMIT\n","publish_time":1619018375642,"_cnpm_publish_time":1619018375642,"dist-tags":{"latest":"4.0.6"}}