{"name":"remote-origin-url","description":"Get the git remote origin URL from your local git repository. Remember! A remote origin must exist first!","version":"2.0.0","homepage":"https://github.com/jonschlinkert/remote-origin-url","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/remote-origin-url.git"},"bugs":{"url":"https://github.com/jonschlinkert/remote-origin-url/issues"},"license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"mocha"},"dependencies":{"parse-git-config":"^3.0.0"},"devDependencies":{"delete":"^1.1.0","gitty":"^3.6.0","gulp-format-md":"^2.0.0","mocha":"^5.2.0"},"keywords":["git","git remote","git remote origin","node","node.js","origin","remote","remote origin","remote origin url","url"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-config-path","git-user-name","git-username","is-git-url","parse-github-url"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"44a079ded02601f8f4a175e2f3f035cc1eda7361","_id":"remote-origin-url@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"integrity":"sha512-4TKz5bTDEHFzsqgjQZY/NxNqceWhtWD69Fgwetm+172GT2NoljyQssB649ECUBHGhBINuGwKw8mfcjQFugdIlg==","shasum":"99c79f6c9c4926e77e840f75f07c2dfa345c6ab8","tarball":"http://registry-npm.ywwl.com/remote-origin-url/download/remote-origin-url-2.0.0.tgz","fileCount":4,"unpackedSize":9142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9kOeCRA9TVsSAnZWagAA3J0P/RFme431oFrkp9Q+tKJ1\nSyEAzyBQC1E/TxIqZ3w8kENsd3Ewot84w2LBNV73cgR3vip03IaYwPZnObmU\naf9wmPszQrwpqeJ50B2I9kELOF0ZthmSuyy92txGdpOzyEQfKkGgXUGrjVOA\n/qGy3y394FSf63BRPAMstgWHcFsSfG9JhiNrRn8PaFxO+cF+MttPHYRTQmFm\nNNVDiunSjMyDudWX+T50Ilx/uMWLHxMiHniKpmeOITph6GkRuGWASiL6rUV+\nIU6ukSRFSU90mnRjcorMpe3wVqkUkERDJbGvNvwYqh3xruuG4hXSucSNBkus\n7bghXv/M/hE7//mDVYJqufCJfEVhtxsmSFda1A09/CMwYqNEszSFbEw7ij68\n8MGOgw/cdWYVmdHXpVecCWAPg0vF2PM29rAG+ANv1WDY/U0TawxOKuMijwEy\ntjr3nZmW4zXR5zV7XQZ3IDwG3nAVNuOnz8EHzywpEQhjLANtA3x9dsoW9KBY\nMOJyWvgb4ulx9PCi2xIPaxulG57a6aEa/Tcp3PbAKxPytMad2SCV1sbfVKlj\nrMGOV11krS4v4ELju8BEaTs6258A8ZgipulwAO6B0DxF0G+nbhlZxcJyH2un\nfC68FgsEk8R+qn1M+8EZFiV3FwaHrZsUlQJbQg+J4m4NUD9wEBlsukWXbEpV\nlX1V\r\n=mfgR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqOCg268Cf0CDthI9ScHyPQqwDxroBwTnul2y9ZGn1TAiEA9mbe/iO1AFZVV1ftxkBXkKkaYWH0YL0WUTuN1+GznIc="}],"size":3393,"noattachment":false,"key":"/remote-origin-url/-/remote-origin-url-2.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remote-origin-url_2.0.0_1542865822169_0.4203235059839241"},"_hasShrinkwrap":false,"readme":"# remote-origin-url [![NPM version](https://img.shields.io/npm/v/remote-origin-url.svg?style=flat)](https://www.npmjs.com/package/remote-origin-url) [![NPM monthly downloads](https://img.shields.io/npm/dm/remote-origin-url.svg?style=flat)](https://npmjs.org/package/remote-origin-url) [![NPM total downloads](https://img.shields.io/npm/dt/remote-origin-url.svg?style=flat)](https://npmjs.org/package/remote-origin-url) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/remote-origin-url.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/remote-origin-url)\n\n> Get the git remote origin URL from your local git repository. Remember! A remote origin must exist first!\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save remote-origin-url\n```\n\n## Usage\n\n```js\nconst origin = require('remote-origin-url');\n```\n\n**async/await**\n\n```js\n(async() => {\n  let url = await origin();\n  console.log(url);\n  // url => \"https://github.com/jonschlinkert/remote-origin-url.git\"\n})();\n```\n\n**Callback**\n\n```js\norigin((err, url) => {\n  if (err) return console.log(err);\n  console.log(url);\n  // url => \"https://github.com/jonschlinkert/remote-origin-url.git\"\n});\n```\n\n**cwd**\n\nSpecify the current working directory to use:\n\n```js\norigin(process.cwd(), (err, url) => {\n  if (err) return console.log(err);\n  console.log(url);\n  // url => \"https://github.com/jonschlinkert/remote-origin-url.git\"\n});\n```\n\n### sync\n\n```js\nconsole.log(origin.sync());\n//=> \"https://github.com/jonschlinkert/remote-origin-url.git\"\n```\n\nSpecify the `cwd` to use:\n\n```js\nconsole.log(origin.sync(process.cwd()));\n//=> \"https://github.com/jonschlinkert/remote-origin-url.git\"\n```\n\n## Release history\n\n### v2.0.0\n\nNow returns a promise if a callback is not supplied.\n\n### v1.0.0\n\nNo significant changes, just minor code formatting. it's time for a 1.0 release!\n\n### v0.5.3\n\n**bug fixes**\n\nPass an object to [parse-git-config](https://github.com/jonschlinkert/parse-git-config) to ensure that `path` is used.\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [git-config-path](https://www.npmjs.com/package/git-config-path): Resolve the path to the user's local or global .gitconfig. | [homepage](https://github.com/jonschlinkert/git-config-path \"Resolve the path to the user's local or global .gitconfig.\")\n* [git-user-name](https://www.npmjs.com/package/git-user-name): Get a user's name from git config at the project or global scope, depending on… [more](https://github.com/jonschlinkert/git-user-name) | [homepage](https://github.com/jonschlinkert/git-user-name \"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.\")\n* [git-username](https://www.npmjs.com/package/git-username): Get the username (or 'owner' name) from a git/GitHub remote origin URL. | [homepage](https://github.com/jonschlinkert/git-username \"Get the username (or 'owner' name) from a git/GitHub remote origin URL.\")\n* [is-git-url](https://www.npmjs.com/package/is-git-url): Regex to validate that a URL is a git url. | [homepage](https://github.com/jonschlinkert/is-git-url \"Regex to validate that a URL is a git url.\")\n* [parse-github-url](https://www.npmjs.com/package/parse-github-url): Parse a github URL into an object. | [homepage](https://github.com/jonschlinkert/parse-github-url \"Parse a github URL into an object.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 34 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 3  | [doowb](https://github.com/doowb) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on November 22, 2018._","publish_time":1542865822272,"_cnpm_publish_time":1542865822272,"dist-tags":{"latest":"2.0.0"}}