{"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.2.1","homepage":"https://github.com/jonschlinkert/remote-origin-url","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/remote-origin-url.git"},"bugs":{"url":"https://github.com/jonschlinkert/remote-origin-url/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/remote-origin-url/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"chalk":"~0.4.0","findup-sync":"~0.1.2","ini":"~1.1.0"},"keywords":["git","remote origin","remote origin url","node.js","node","remote","url","origin"],"_id":"remote-origin-url@0.2.1","dist":{"shasum":"bf72cd3838cc92d9d162672622cc678369a9bba0","tarball":"http://registry-npm.ywwl.com/remote-origin-url/download/remote-origin-url-0.2.1.tgz","integrity":"sha512-eKggKz2IXAhc/JhOHmdHS61B0Ft9CVgQhN8mlZNR7GJvHlQjp/BKGKHAwRICV2SnCDVLZWapblAPQvy2fBorYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAULUrCqJtvPMfZIb1M5cOfv8+ImrfjFciX+9FtecGlAiEAzt/2vNOTX6AFCR9g006eo9qoTNHXfZbS3WO5CViuUko="}],"size":2288,"noattachment":false,"key":"/remote-origin-url/-/remote-origin-url-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"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":1391926510613,"_cnpm_publish_time":1391926510613,"dist-tags":{"latest":"2.0.0"}}