# npm-author-name

> Gets the npm author name from npmrc file, or fallback to git config

Latest version **1.0.7** (published 2020-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-author-name
pnpm add npm-author-name
yarn add npm-author-name
bun add npm-author-name
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-01-29 |
| First published | 2020-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Harush |
| Maintainers | dudiharush |
| Keywords | npm username, npm author, npm details, npm user |

## Links

- npm: https://www.npmjs.com/package/npm-author-name
- Repository: https://github.com/dudiharush/npm-author-name
- Homepage: https://github.com/dudiharush/npm-author-name#readme
- Issues: https://github.com/dudiharush/npm-author-name/issues
- npm.io page: https://npm.io/package/npm-author-name

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [commander](https://npm.io/package/commander.md) ^4.1.0
- [git-user-name](https://npm.io/package/git-user-name.md) ^2.0.0
- [npm-author-name](https://npm.io/package/npm-author-name.md) ^1.0.2

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.7 (latest) — 2020-01-29
- 1.0.6 — 2020-01-29
- 1.0.5 — 2020-01-28
- 1.0.2 — 2020-01-28
- 1.0.1 — 2020-01-28

## README

# description

Get/Set your npm author name from npmrc or gitconfig files

# installation

npm i npm-author-name

# usage example

```
import { setAuthorName, getAuthorName } from 'npm-author-name';

if(!getAuthorName()) {
    setAuthorName("Some Name");
}
console.log("author name", getAuthorName())
```

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