{"_id":"bitbucket-url-to-object","_rev":"9-ae99de5820df852699a5dd9f7b319190","name":"bitbucket-url-to-object","description":"Extract user, repo, and other interesting properties from Bitbucket URLs","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"bitbucket-url-to-object","version":"0.1.0","description":"Extract user, repo, and other interesting properties from Bitbucket URLs","main":"index.js","scripts":{"bundle":"bin/bundle","test":"mocha"},"repository":{"type":"git","url":"https://github.org/zeke/bitbucket-url-to-object"},"keywords":["bitbucket","url","repo"],"author":{"name":"zeke"},"license":"MIT","bugs":{"url":"https://github.org/zeke/bitbucket-url-to-object/issues"},"dependencies":{"is-url":"^1.1.0"},"devDependencies":{"mocha":"^1.19.0"},"_id":"bitbucket-url-to-object@0.1.0","_shasum":"e3be79a49d787917305b0ebd969086a94c7ad5e8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"e3be79a49d787917305b0ebd969086a94c7ad5e8","tarball":"https://registry.npmjs.org/bitbucket-url-to-object/-/bitbucket-url-to-object-0.1.0.tgz","integrity":"sha512-aRjyfPOzY3CRa7tBKZ+DBUG55Kuo0L5TAaJmI1P/LBmcW2IEk5CRMgAWSpjuY7hITkA0YM/JRFCWmSIH5lblnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY29KGqSpu2OlOeCaFrEf9oIcoHdA6j6GBJYAi9iOohQIgTjdsCREIpgFOfMpTtG3RhKoTpML2dDUhLQe0Ak/JADE="}]}},"0.2.0":{"name":"bitbucket-url-to-object","version":"0.2.0","description":"Extract user, repo, and other interesting properties from Bitbucket URLs","main":"index.js","scripts":{"bundle":"bin/bundle","test":"mocha"},"repository":{"type":"git","url":"https://github.org/zeke/bitbucket-url-to-object"},"keywords":["bitbucket","url","repo"],"author":{"name":"zeke"},"license":"MIT","bugs":{"url":"https://github.org/zeke/bitbucket-url-to-object/issues"},"dependencies":{"is-url":"^1.1.0"},"devDependencies":{"mocha":"^1.19.0"},"_id":"bitbucket-url-to-object@0.2.0","_shasum":"dd01373eed6c3d3c50a801c13ac047f1ca4141c1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"dd01373eed6c3d3c50a801c13ac047f1ca4141c1","tarball":"https://registry.npmjs.org/bitbucket-url-to-object/-/bitbucket-url-to-object-0.2.0.tgz","integrity":"sha512-kQfeMaPwr6TZ9QXymIZYWw5M6GnLVGqvIeGNPJAuItRwi3rpW/EreAn6bkXuIdXz4c4Pv16QDJ+VZ6Pd63yzkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDA2oGTISrQ/YvYRDns3c7sa/K5FbgC19kOt456cyRTCAiB2g7ZHbgid4yqEbSbx180cHiP/Lv9EuOVdGEM3VZEHpQ=="}]}},"0.2.1":{"name":"bitbucket-url-to-object","version":"0.2.1","description":"Extract user, repo, and other interesting properties from Bitbucket URLs","main":"index.js","scripts":{"bundle":"bin/bundle","test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/bitbucket-url-to-object"},"keywords":["bitbucket","url","repo"],"author":{"name":"zeke"},"license":"MIT","bugs":{"url":"https://github.com/zeke/bitbucket-url-to-object/issues"},"dependencies":{"is-url":"^1.1.0"},"devDependencies":{"mocha":"^1.19.0"},"gitHead":"b459b6113dc8bd7d09d233e9725eb7deb224ffbd","homepage":"https://github.com/zeke/bitbucket-url-to-object","_id":"bitbucket-url-to-object@0.2.1","_shasum":"560a3fb2ef75b026895994341b03d7246c7964b9","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"560a3fb2ef75b026895994341b03d7246c7964b9","tarball":"https://registry.npmjs.org/bitbucket-url-to-object/-/bitbucket-url-to-object-0.2.1.tgz","integrity":"sha512-oL2ieBiCzVJp8kD7ob10zOqyLUe4fmaPVrRqmLMzKMToVjDBrxzIZ8TBXC+sj4LkEKejP/J2NnKrmlp8owMFdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIXi5JKguPLIWR6kck4posJTb7ZOwPDECo5iJRAgw7EAiEAha1pAabqQ74V3UpUpCylk4xwNnqdjFy/kGoOwNoc2kc="}]}},"0.3.0":{"name":"bitbucket-url-to-object","version":"0.3.0","description":"Extract user, repo, and other interesting properties from Bitbucket URLs","main":"index.js","scripts":{"bundle":"bin/bundle","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zeke/bitbucket-url-to-object.git"},"keywords":["bitbucket","url","repo"],"author":{"name":"zeke"},"license":"MIT","bugs":{"url":"https://github.com/zeke/bitbucket-url-to-object/issues"},"dependencies":{"is-url":"^1.1.0"},"devDependencies":{"mocha":"^1.19.0"},"gitHead":"b9a9e2ace097b349899e7e4488a34a9f60df3b69","homepage":"https://github.com/zeke/bitbucket-url-to-object#readme","_id":"bitbucket-url-to-object@0.3.0","_shasum":"d68940140816c3e00cb4a31fbcf8e640e0f4ae17","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"d68940140816c3e00cb4a31fbcf8e640e0f4ae17","tarball":"https://registry.npmjs.org/bitbucket-url-to-object/-/bitbucket-url-to-object-0.3.0.tgz","integrity":"sha512-kYQMrecTqOJabjLW/VgXJl8fDqtCRs0JXa236P9TGqGU5T1jlrSrxbxnogykQOp7czMx+yxlS+zA1IKUEf3b6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyYyNDVwI56BqmmJkrBJTsctSQR9/Sxm8/jvee+aMZJgIgXKgauHsSidQNWB8XB5UaE5quB6hYgpJgq5+yaacDO8Q="}]}}},"readme":"# bitbucket-url-to-object  [![Build Status](https://travis-ci.org/zeke/bitbucket-url-to-object.png?branch=master)](https://travis-ci.org/zeke/bitbucket-url-to-object)\n\nA node module that extracts useful properties like `user` and\n`repo` from various flavors of bitbucket URLs.\n\nThere's also a GitHub equivalent to this library: [github-url-to-object](https://github.com/zeke/github-url-to-object).\n\n## Installation\n\n```sh\nnpm install bitbucket-url-to-object --save\n```\n\n## Usage\n\nPass whatever flavor of bitbucket URL you like:\n\n```js\nvar bb = require('bitbucket-url-to-object')\n\nbb('monkey/business')\nbb('bitbucket:monkey/business')\nbb('https://bitbucket.org/monkey/business')\nbb('https://bitbucket.org/monkey/business.git')\nbb('http://bitbucket.org/monkey/business')\nbb('git://bitbucket.org/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  https_url: 'https://bitbucket.org/monkey/business',\n  tarball_url: 'https://bitbucket.org/monkey/business/get/master.tar.gz'\n  travis_url: 'https://travis-ci.org/monkey/business',\n}\n```\n\nThe shorthand format lets you specify a branch:\n\n```js\n  bb('monkey/business#nachos')\n{\n  user: 'monkey',\n  repo: 'business',\n  branch: 'nachos',\n  https_url: 'https://bitbucket.org/monkey/business/tree/nachos',\n  tarball_url: 'https://bitbucket.org/monkey/business/get/nachos.tar.gz'\n  travis_url: 'https://travis-ci.org/monkey/business',\n}\n```\n\nIf you provide a non-bitbucket URL or a falsy value, you'll get `null`.\n\n## Test\n\n```sh\nnpm install\nnpm test\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"time":{"modified":"2022-06-13T04:41:36.392Z","created":"2014-07-10T18:06:05.052Z","0.1.0":"2014-07-10T18:06:05.052Z","0.2.0":"2014-07-10T18:19:32.987Z","0.2.1":"2014-10-11T04:29:20.343Z","0.3.0":"2016-01-26T22:26:38.150Z"},"keywords":["bitbucket","url","repo"],"repository":{"type":"git","url":"git+https://github.com/zeke/bitbucket-url-to-object.git"},"author":{"name":"zeke"},"bugs":{"url":"https://github.com/zeke/bitbucket-url-to-object/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/zeke/bitbucket-url-to-object#readme"}