{"id":15658693,"url":"https://github.com/jonschlinkert/git-user-name","last_synced_at":"2025-10-28T22:14:21.051Z","repository":{"id":15710504,"uuid":"18448516","full_name":"jonschlinkert/git-user-name","owner":"jonschlinkert","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.","archived":false,"fork":false,"pushed_at":"2023-07-28T00:40:03.000Z","size":23,"stargazers_count":22,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-03T10:29:54.956Z","etag":null,"topics":["git","javascript","name","nodejs","user","username"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-04T18:36:32.000Z","updated_at":"2024-09-17T15:56:32.000Z","dependencies_parsed_at":"2024-06-18T15:31:08.103Z","dependency_job_id":"424adb95-45e5-419c-83ef-b183e158b814","html_url":"https://github.com/jonschlinkert/git-user-name","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":"0.15384615384615385","last_synced_commit":"22cf1d3880356c754f7d84dec242987a3b8fcc7e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jonschlinkert/git-user-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-user-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-user-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-user-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-user-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/git-user-name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgit-user-name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260124097,"owners_count":22962207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","javascript","name","nodejs","user","username"],"created_at":"2024-10-03T13:13:32.242Z","updated_at":"2025-10-28T22:14:16.024Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","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\u0026label=Travis)](https://travis-ci.org/jonschlinkert/git-user-name)\n\n\u003e 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//=\u003e jonschlinkert\n```\n\n## About\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eContributing\u003c/strong\u003e\u003c/summary\u003e\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRunning Tests\u003c/strong\u003e\u003c/summary\u003e\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 \u0026\u0026 npm test\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBuilding docs\u003c/strong\u003e\u003c/summary\u003e\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 \u0026\u0026 verb\n```\n\n\u003c/details\u003e\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._","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgit-user-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fgit-user-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgit-user-name/lists"}