{"name":"github-url-to-object","version":"2.2.4","description":"Extract user, repo, and other interesting properties from GitHub URLs","main":"index.js","scripts":{"test":"mocha && standard","build":"browserify index.js --standalone gh > dist/gh.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","mocha":"^2.5.3","standard":"^7.1.2","uglify-js":"^2.4.15"},"standard":{"ignore":["dist"]},"gitHead":"27fccef9a4c76750c89e418a75aab578069b3794","homepage":"https://github.com/zeke/github-url-to-object#readme","_id":"github-url-to-object@2.2.4","_shasum":"b1d11b7f17b2abf96d4dd834938ab38cfca46c2f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"dist":{"shasum":"b1d11b7f17b2abf96d4dd834938ab38cfca46c2f","tarball":"http://registry-npm.ywwl.com/github-url-to-object/download/github-url-to-object-2.2.4.tgz","integrity":"sha512-9zL5xUAM7IhuOMSGRdZnenFk1Hxb1MEjyVQ3tk75SPXFT1H8d7Ktv7GxY6+8wcNX/mse4dJHO36PyQ7evpRd9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEU70ccfgAshDSRYqHwJExXaaJW0VJM3cBzL8rTO8CrgAiEAi5lkXqCR/2ItF2cNTBhu/NfcVD8ogqtWWChRbrfVD4E="}],"size":23210,"noattachment":false,"key":"/github-url-to-object/-/github-url-to-object-2.2.4.tgz"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/github-url-to-object-2.2.4.tgz_1472959465157_0.9414371422026306"},"directories":{},"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":1472959468842,"_cnpm_publish_time":1472959468842,"dist-tags":{"latest":"4.0.6"}}