# git-user-info

> Get the user info for the current user from git config, at the project or global scope

Latest version **2.0.3** (published 2022-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-user-info
pnpm add git-user-info
yarn add git-user-info
bun add git-user-info
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2022-03-16 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Espen Hovlandsdal |
| Maintainers | rexxars |
| Keywords | git, gitconfig, user, user-info |

## Links

- npm: https://www.npmjs.com/package/git-user-info
- Repository: https://github.com/rexxars/git-user-info
- Issues: https://github.com/rexxars/git-user-info/issues
- npm.io page: https://npm.io/package/git-user-info

## Dependencies (2)

- [git-config-path](https://npm.io/package/git-config-path.md) ^1.0.1
- [parse-git-config](https://npm.io/package/parse-git-config.md) ^1.1.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2022-03-16
- 2.0.2 — 2022-03-15
- 2.0.1 — 2022-03-15
- 2.0.0 — 2022-02-08
- 1.0.1 — 2017-02-13
- 1.0.0 — 2015-05-05

## README

# git-user-info

[![npm version](http://img.shields.io/npm/v/git-user-info.svg?style=flat-square)](http://browsenpm.org/package/git-user-info)

Get the user info for the current user from git config, at the project or global scope

# Installation

```bash
$ npm install --save git-user-info
```

# Usage

```js
var {getGitUserInfo} = require('git-user-info')

// Default path
console.log(getGitUserInfo())

// Specific path
console.log(getGitUserInfo({path: '/path/to/.gitconfig'}))
```

# Notes

- Heavily inspired by [git-user-name](https://github.com/jonschlinkert/git-user-name)

# License

MIT-licensed. See LICENSE.

---
_Source: https://npm.io/package/git-user-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
