{"_id":"git-username","_rev":"94291","name":"git-username","description":"Get the username (or 'owner' name) from a git/GitHub remote origin URL.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:31:23.000Z","created":"2014-04-04T16:23:23.971Z","1.0.0":"2018-03-03T01:35:01.119Z","0.5.1":"2018-02-26T01:03:46.205Z","0.5.0":"2017-01-02T20:25:00.466Z","0.4.0":"2015-02-27T18:35:57.696Z","0.3.1":"2015-02-27T17:17:00.854Z","0.3.0":"2015-02-27T17:16:16.922Z","0.2.0":"2014-05-15T17:25:03.815Z","0.1.2":"2014-04-04T19:04:13.764Z","0.1.1":"2014-04-04T17:10:44.010Z","0.1.0":"2014-04-04T16:23:23.971Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-username.git"},"versions":{"1.0.0":{"name":"git-username","description":"Get the username (or 'owner' name) from a git/GitHub remote origin URL.","version":"1.0.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+https://github.com/jonschlinkert/git-username.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-username/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"parse-github-url":"^1.0.2","remote-origin-url":"^1.0.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["git","name","origin","parse","remote","remote origin","remote origin url","url","user","username"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":["git-branch","git-user-name","parse-git-config","remote-origin-url"]}},"gitHead":"3baff113f79d62bc779f540ae5f8dfc825dd1fa7","_id":"git-username@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"5e31ef29efe15c184cfaa5ed23212c89b0fcf123","size":3292,"noattachment":false,"key":"/git-username/-/git-username-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-username_1.0.0_1520040900942_0.9669176187288828"},"_hasShrinkwrap":false,"publish_time":1520040901119,"_cnpm_publish_time":1520040901119},"0.5.1":{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.5.1","homepage":"https://github.com/jonschlinkert/git-username","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-username.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-username/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"remote-origin-url":"^0.4.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["git","name","origin","parse","remote","remote origin","remote origin url","url","user","username"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":[]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"b4313b31a0d2b51105f96307d6306e150f3df80d","_id":"git-username@0.5.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"432a41b34a19607892354004c9893a8829ffa4f0","size":2415,"noattachment":false,"key":"/git-username/-/git-username-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.5.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-username_0.5.1_1519607026059_0.8754910643041367"},"_hasShrinkwrap":false,"publish_time":1519607026205,"_cnpm_publish_time":1519607026205},"0.5.0":{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.5.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+https://github.com/jonschlinkert/git-username.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-username/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"remote-origin-url":"^0.4.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["git","name","origin","parse","remote","remote origin","remote origin url","url","user","username"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"related":{"list":[]},"reflinks":["verb","verb-generate-readme"]},"gitHead":"db9ee068d378bc8f86b200a0ad207623040bd7f2","_id":"git-username@0.5.0","_shasum":"38c561dac9cbf334097a31bd9a38af0cb40a3123","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"38c561dac9cbf334097a31bd9a38af0cb40a3123","size":2404,"noattachment":false,"key":"/git-username/-/git-username-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.5.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/git-username-0.5.0.tgz_1483388698426_0.95415452378802"},"directories":{},"publish_time":1483388700466,"_cnpm_publish_time":1483388700466,"_hasShrinkwrap":false},"0.4.0":{"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","size":2201,"noattachment":false,"key":"/git-username/-/git-username-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.4.0.tgz"},"directories":{},"publish_time":1425062157696,"_cnpm_publish_time":1425062157696,"_hasShrinkwrap":false},"0.3.1":{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.3.1","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.3.0"},"devDependencies":{"mocha":"*"},"keywords":["parse","git","name","origin","remote","remote origin url","remote origin","url","user","username"],"gitHead":"0db904a4eda89502de7796a9cdfa3c97441048f6","_id":"git-username@0.3.1","_shasum":"816b28da13de58e80c41d8f9ee8e6f7cfdd3f0d7","_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":"816b28da13de58e80c41d8f9ee8e6f7cfdd3f0d7","size":2193,"noattachment":false,"key":"/git-username/-/git-username-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.3.1.tgz"},"directories":{},"publish_time":1425057420854,"_cnpm_publish_time":1425057420854,"_hasShrinkwrap":false},"0.3.0":{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.3.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.3.0"},"devDependencies":{"mocha":"*"},"keywords":["parse","git","name","origin","remote","remote origin url","remote origin","url","user","username"],"gitHead":"0db904a4eda89502de7796a9cdfa3c97441048f6","_id":"git-username@0.3.0","_shasum":"900fa9713f1ae84d983df82e08d36e9742ece9f7","_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":"900fa9713f1ae84d983df82e08d36e9742ece9f7","size":2176,"noattachment":false,"key":"/git-username/-/git-username-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.3.0.tgz"},"directories":{},"publish_time":1425057376922,"_cnpm_publish_time":1425057376922,"_hasShrinkwrap":false},"0.2.0":{"name":"git-username","description":"Extract the username from a git remote origin URL.","version":"0.2.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":{"github-url-from-git":"~1.1.1","remote-origin-url":"~0.2.1","verbalize":"^0.1.2"},"_id":"git-username@0.2.0","_shasum":"45a7b624738ff09c78270226389e39e4cc7c3114","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"45a7b624738ff09c78270226389e39e4cc7c3114","size":37863,"noattachment":false,"key":"/git-username/-/git-username-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.2.0.tgz"},"directories":{},"publish_time":1400174703815,"_cnpm_publish_time":1400174703815,"_hasShrinkwrap":false},"0.1.2":{"name":"git-username","description":"Extract the username from a git remote origin URL.","version":"0.1.2","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","github-url-from-git":"~1.1.1"},"_id":"git-username@0.1.2","dist":{"shasum":"ff598d8dbb6b054096dd69eb087f76ebe4a4e8db","size":37745,"noattachment":false,"key":"/git-username/-/git-username-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1396638253764,"_cnpm_publish_time":1396638253764,"_hasShrinkwrap":false},"0.1.1":{"name":"git-username","description":"Get the username from a git remote origin URL.","version":"0.1.1","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","github-url-from-git":"~1.1.1"},"_id":"git-username@0.1.1","dist":{"shasum":"e5b56505318f553f8fb700764c41326f00821283","size":2387,"noattachment":false,"key":"/git-username/-/git-username-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/git-username-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1396631444010,"_cnpm_publish_time":1396631444010,"_hasShrinkwrap":false},"0.1.0":{"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","size":2397,"noattachment":false,"key":"/git-username/-/git-username-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-username/download/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":{},"publish_time":1396628603971,"_cnpm_publish_time":1396628603971,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/git-username","bugs":{"url":"https://github.com/jonschlinkert/git-username/issues"},"license":"MIT"}