{"_id":"git-user-name","_rev":"94152","name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:31:20.000Z","created":"2014-04-04T18:35:57.145Z","2.0.0":"2017-10-17T05:35:09.597Z","1.2.1":"2017-10-17T05:33:23.434Z","1.2.0":"2016-03-19T17:17:30.474Z","1.1.2":"2015-03-31T05:24:53.942Z","1.1.1":"2015-03-04T20:35:00.064Z","1.1.0":"2015-03-04T20:08:15.119Z","1.0.2":"2015-03-04T18:52:25.461Z","1.0.1":"2015-02-27T17:21:17.177Z","0.1.0":"2014-04-04T18:35:57.145Z"},"users":{"jonschlinkert":true},"author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-user-name.git"},"versions":{"2.0.0":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert"},"contributors":[{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"},{"name":"宝码","url":"http://noyobo.com"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","git-config-path":"^1.0.1","parse-git-config":"^1.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^2.4.5"},"keywords":["git","gitconfig","github","global","name","user","username"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-branch","git-config-path","git-repo-name","git-user-email","git-username","parse-git-config"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"c37da2e88f3f6a42490eaec08988d63ca277bfa0","_id":"git-user-name@2.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"c0411d423051615d0df1ee44ab45596d2168c2e3","size":2784,"noattachment":false,"key":"/git-user-name/-/git-user-name-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-2.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-user-name-2.0.0.tgz_1508218508730_0.4541600034572184"},"directories":{},"publish_time":1508218509597,"_hasShrinkwrap":false,"_cnpm_publish_time":1508218509597},"1.2.1":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.2.1","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","git-config-path":"^0.1.0","isobject":"^2.0.0","lazy-cache":"^1.0.3","parse-git-config":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["git","gitconfig","github","global","name","user","username"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-config-path","parse-git-config","git-username","git-repo-name","git-branch","git-user-email"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"d95a416e2cb210a42894b0d086df519e357e3789","_id":"git-user-name@1.2.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"78a76a4239c29cbe09805d8a0711abec25755e5d","size":2513,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.2.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-user-name-1.2.1.tgz_1508218402456_0.40476362593472004"},"directories":{},"publish_time":1508218403434,"_hasShrinkwrap":false,"_cnpm_publish_time":1508218403434},"1.2.0":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.2.0","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","git-config-path":"^0.1.0","isobject":"^2.0.0","lazy-cache":"^1.0.3","parse-git-config":"^0.4.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["git","gitconfig","github","global","name","user","username"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-config-path","parse-git-config","git-username","git-repo-name","git-branch","git-user-email"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"158db07850652ed06ae9088b6fe96b7c0cfe5291","_id":"git-user-name@1.2.0","_shasum":"f37a6184b012f5be931016306b4c7b7b86afff24","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f37a6184b012f5be931016306b4c7b7b86afff24","size":2510,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/git-user-name-1.2.0.tgz_1458407847928_0.19736533029936254"},"directories":{},"publish_time":1458407850474,"_cnpm_publish_time":1458407850474,"_hasShrinkwrap":false},"1.1.2":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.1.2","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-user-name/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.2","git-config-path":"^0.1.0","parse-git-config":"^0.3.0"},"devDependencies":{"mocha":"*"},"keywords":["git","gitconfig","github","global","name","user","username"],"gitHead":"b7f20fc72f745da09d26f4566b42245be98a72d7","_id":"git-user-name@1.1.2","_shasum":"86484e0290ba51d3ef78ab9c1a8389a3c62e96c2","_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":"86484e0290ba51d3ef78ab9c1a8389a3c62e96c2","size":2084,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.1.2.tgz"},"directories":{},"publish_time":1427779493942,"_cnpm_publish_time":1427779493942,"_hasShrinkwrap":false},"1.1.1":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.1.1","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-user-name/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.2","git-config-path":"^0.1.0","parse-git-config":"^0.3.0"},"keywords":["git","gitconfig","github","global","name","user","username"],"devDependencies":{"mocha":"^2.1.0"},"gitHead":"4bbb5b373ec606426e2d80d75246c7de17498898","_id":"git-user-name@1.1.1","_shasum":"f340b417ab5761dacf80ff6e941bf9d89bdd5826","_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":"f340b417ab5761dacf80ff6e941bf9d89bdd5826","size":2103,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.1.1.tgz"},"directories":{},"publish_time":1425501300064,"_cnpm_publish_time":1425501300064,"_hasShrinkwrap":false},"1.1.0":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-user-name/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.2","git-config-path":"^0.1.0","parse-git-config":"^0.3.0"},"keywords":["git","gitconfig","github","global","name","user","username"],"gitHead":"fc9b90aa48beb1bddea14290fc5d1d301d1bf793","_id":"git-user-name@1.1.0","_shasum":"7671c36d8a0ad68cd9724057319a5b19736a0cd4","_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":"7671c36d8a0ad68cd9724057319a5b19736a0cd4","size":2088,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.1.0.tgz"},"directories":{},"publish_time":1425499695119,"_cnpm_publish_time":1425499695119,"_hasShrinkwrap":false},"1.0.2":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.0.2","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-user-name/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"shelljs":"^0.3.0"},"keywords":["git","github","name","user","username"],"gitHead":"0baef983eef29cdcf8fa43b1119fefc807b26a26","_id":"git-user-name@1.0.2","_shasum":"564dabbf3e3151b7e6375aba780ab88e8f76e1d2","_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":"564dabbf3e3151b7e6375aba780ab88e8f76e1d2","size":1810,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.0.2.tgz"},"directories":{},"publish_time":1425495145461,"_cnpm_publish_time":1425495145461,"_hasShrinkwrap":false},"1.0.1":{"name":"git-user-name","description":"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-user-name/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"shelljs":"^0.3.0"},"keywords":["git","github","name","user","username"],"gitHead":"9863c0f4f3a8e71d0316780487d8df15cfb9eb85","_id":"git-user-name@1.0.1","_shasum":"c793178dce31c1d10ea49a2b3b6239afd06943f4","_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":"c793178dce31c1d10ea49a2b3b6239afd06943f4","size":1783,"noattachment":false,"key":"/git-user-name/-/git-user-name-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-1.0.1.tgz"},"directories":{},"publish_time":1425057677177,"_cnpm_publish_time":1425057677177,"_hasShrinkwrap":false},"0.1.0":{"name":"git-user-name","description":"Get the name of the current user from git config, at the project or global scope, depending on what git uses in the current context.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/git-user-name","author":{"name":"Jon Schlinkert","url":"http://github.com/https://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-user-name.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/git-user-name/blob/master/LICENSE-MIT"}],"keywords":["git","github","user","username","user name","name"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha -R test"},"devDependencies":{"verb":"~0.2.0"},"dependencies":{"shelljs":"~0.2.6"},"_id":"git-user-name@0.1.0","dist":{"shasum":"5cba03d2f3cd155b03a6e184af5f92d38c8e76f1","size":2343,"noattachment":false,"key":"/git-user-name/-/git-user-name-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-user-name/download/git-user-name-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":1396636557145,"_cnpm_publish_time":1396636557145,"_hasShrinkwrap":false}},"readme":"# git-user-name [![NPM version](https://img.shields.io/npm/v/git-user-name.svg?style=flat)](https://www.npmjs.com/package/git-user-name) [![NPM monthly downloads](https://img.shields.io/npm/dm/git-user-name.svg?style=flat)](https://npmjs.org/package/git-user-name) [![NPM total downloads](https://img.shields.io/npm/dt/git-user-name.svg?style=flat)](https://npmjs.org/package/git-user-name) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/git-user-name.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/git-user-name)\n\n> Get a user's name from git config at the project or global scope, depending on what git uses in the current context.\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-user-name\n```\n\n## Usage\n\n```js\nvar userName = require('git-user-name');\nconsole.log(userName());\n//=> jonschlinkert\n```\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-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-repo-name](https://www.npmjs.com/package/git-repo-name): Get the repository name from the git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-repo-name \"Get the repository name from the git remote origin URL.\")\n* [git-user-email](https://www.npmjs.com/package/git-user-email): Get the email address of the current user from git config. | [homepage](https://github.com/jonschlinkert/git-user-email \"Get the email address of the current user from git config.\")\n* [git-username](https://www.npmjs.com/package/git-username): Get the username from a git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-username \"Get the username from a git remote origin URL.\")\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\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 19 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 3 | [noyobo](https://github.com/noyobo) |\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [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 October 17, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/git-user-name","bugs":{"url":"https://github.com/jonschlinkert/git-user-name/issues"},"license":"MIT"}