{"name":"remote-origin-url","description":"Get the git remote origin URL from your local git repository. Remember! A remote origin must exist first!","version":"0.5.3","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","files":["index.js"],"main":"index.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha"},"dependencies":{"parse-git-config":"^1.1.1"},"devDependencies":{"delete":"^1.1.0","gitty":"^3.6.0","gulp-format-md":"^1.0.0","mocha":"^3.4.2"},"keywords":["git","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":"1348d80a9918f45118211b137aebdd9fd07d950d","_id":"remote-origin-url@0.5.3","_npmVersion":"5.2.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"integrity":"sha512-crQ7Xk1m/F2IiwBx5oTqk/c0hjoumrEz+a36+ZoVupskQRE/q7pAwHKsTNeiZ31sbSTELvVlVv4h1W0Xo5szKg==","shasum":"b9fc6ced2c826690d0b07218b2b8c17fcec88e87","tarball":"http://registry-npm.ywwl.com/remote-origin-url/download/remote-origin-url-0.5.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGarc+H4UJ+PbT2+0v2snRiixB1P/Kc2BIY8g8QijSrAIhAN/Oi83gyWeyPtq4fqv572Nhy+Q0stwStV/q5X8P6J0u"}],"size":2923,"noattachment":false,"key":"/remote-origin-url/-/remote-origin-url-0.5.3.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remote-origin-url-0.5.3.tgz_1499768540994_0.29058037232607603"},"directories":{},"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":1499768541937,"_cnpm_publish_time":1499768541937,"dist-tags":{"latest":"2.0.0"}}