{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.4.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"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-username/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"chalk":"^1.0.0","remote-origin-url":"^0.4.0"},"devDependencies":{"mocha":"*"},"keywords":["parse","git","name","origin","remote","remote origin url","remote origin","url","user","username"],"gitHead":"3613f6f9abf519d866a1ac7d5269f7e657bfc69e","_id":"git-username@0.4.0","_shasum":"80686e89c0d862a680ed3ad3e889fd84c301788a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"80686e89c0d862a680ed3ad3e889fd84c301788a","tarball":"http://registry-npm.ywwl.com/git-username/download/git-username-0.4.0.tgz","integrity":"sha512-yoOTcPwxRmb8Yh0h2rQ/nJGqi0aPyZ7JHcnHj3M//w7+BqPwp8pvygvIOWVA4uR6mDNR250v/QRbOwjyivtOeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIywwI3EGbTlcC5lMeSv6pD+LOYUz8tP9N6ra15EC8vAiBb+QtZzYMae7twaAYSb5o83ph7SafsZIxJa+7YQUlAyw=="}],"size":2201,"noattachment":false,"key":"/git-username/-/git-username-0.4.0.tgz"},"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":1425062157696,"_cnpm_publish_time":1425062157696,"dist-tags":{"latest":"1.0.0"}}