{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/git-username","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-username.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-username/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/git-username/blob/master/LICENSE-MIT"}],"keywords":["docs","documentation","generate","generator","markdown","templates","verb"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha -R test"},"devDependencies":{"verb":"~0.2.0"},"dependencies":{"remote-origin-url":"~0.2.1"},"_id":"git-username@0.1.0","dist":{"shasum":"3969b3dac2476f15c4ba95a92643164d68ea8a92","tarball":"http://registry-npm.ywwl.com/git-username/download/git-username-0.1.0.tgz","integrity":"sha512-GIxveVMJeG9vkQWIA1x3gvjH/XiXMSHbppg8kUliZYJGut8GjNQ8mqW8sL4hsMBEzNlwiHT/6SNFQ0rUtG7G+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBD6gJxH32yJUrRKQYLN+fuvYEF0Hzqhu4eJktbaHNMNAiBkK+Ow2tXI/XaoBh+NMmJ8SOZykrNFXdfzHBaAM13Bww=="}],"size":2397,"noattachment":false,"key":"/git-username/-/git-username-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"readme":"# git-username [![NPM version](https://img.shields.io/npm/v/git-username.svg?style=flat)](https://www.npmjs.com/package/git-username) [![NPM monthly downloads](https://img.shields.io/npm/dm/git-username.svg?style=flat)](https://npmjs.org/package/git-username) [![NPM total downloads](https://img.shields.io/npm/dt/git-username.svg?style=flat)](https://npmjs.org/package/git-username) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/git-username.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/git-username)\n\n> Get the username (or 'owner' name) from a git/GitHub remote origin URL.\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 git-username\n```\n\n## Usage\n\nIf no arguments are passed, the `.git/config` in the current working directory is used.\n\n```js\nvar username = require('git-username');\nconsole.log(username()); //=> jonschlinkert\n```\n\n## Options\n\n### options.cwd\n\n**Type**: `string`\n\n**Default**: `process.cwd()`\n\nSet the current working directory (cwd):\n\n**Examples**\n\n```js\nusername({ cwd: 'some/path' });\n\n// cwd may also be passed as the first argument\nusername('some/path');\n```\n\n### options.strict\n\n**Type**: `boolean`\n\n**Default**: `undefined`\n\nThrow an error when a git config or git remote origin cannot be resolved. Otherwise, when `strict` is not true and a remote origin cannot be resolved, `null` is returned.\n\n**Example**\n\n```js\nusername({ strict: true });\n```\n\n## Release history\n\n### v1.0\n\n**Breaking changes**\n\n* The second argument can no longer be a boolean (for warning when git remote origin is not found). Use [options.strict](#optionsstrict) instead.\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-branch](https://www.npmjs.com/package/git-branch): Get the current branch for a local git repository. | [homepage](https://github.com/jonschlinkert/git-branch \"Get the current branch for a local git repository.\")\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* [parse-git-config](https://www.npmjs.com/package/parse-git-config): Parse `.git/config` into a JavaScript object. sync or async. | [homepage](https://github.com/jonschlinkert/parse-git-config \"Parse `.git/config` into a JavaScript object. sync or async.\")\n* [remote-origin-url](https://www.npmjs.com/package/remote-origin-url): Get the git remote origin URL from your local git repository. Remember! A remote origin… [more](https://github.com/jonschlinkert/remote-origin-url) | [homepage](https://github.com/jonschlinkert/remote-origin-url \"Get the git remote origin URL from your local git repository. Remember! A remote origin must exist first!\")\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 21 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [davisjam](https://github.com/davisjam) |\n| 1 | [jamo](https://github.com/jamo) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](http://github.com/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.6.0, on March 02, 2018._","publish_time":1396628603971,"_cnpm_publish_time":1396628603971,"dist-tags":{"latest":"1.0.0"}}