# fullname

> Get the fullname of the current user

Latest version **5.0.0** (published 2023-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install fullname
pnpm add fullname
yarn add fullname
bun add fullname
```

## 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 | 5.0.0 |
| Published | 2023-09-01 |
| First published | 2014-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 6 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 47 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | name, fullname, realname, full name, surname, full, real, given, user, gecos, pwuid, uid |

## Links

- npm: https://www.npmjs.com/package/fullname
- Repository: https://github.com/sindresorhus/fullname
- Homepage: https://github.com/sindresorhus/fullname#readme
- Issues: https://github.com/sindresorhus/fullname/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/fullname

## Dependencies (6)

- [rc](https://npm.io/package/rc.md) ^1.2.8
- [mem](https://npm.io/package/mem.md) ^5.1.0
- [execa](https://npm.io/package/execa.md) ^8.0.1
- [p-any](https://npm.io/package/p-any.md) ^4.0.0
- [filter-obj](https://npm.io/package/filter-obj.md) ^5.1.0
- [passwd-user](https://npm.io/package/passwd-user.md) ^4.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 5.0.0 (latest) — 2023-09-01
- 4.0.1 — 2019-06-29
- 4.0.0 — 2019-05-01
- 3.3.0 — 2017-01-30
- 3.2.0 — 2016-12-17
- 3.1.0 — 2016-06-01
- 3.0.0 — 2016-01-16
- 2.1.0 — 2015-11-14
- 2.0.1 — 2015-10-22
- 2.0.0 — 2015-10-09
- 1.1.1 — 2015-08-21
- 1.1.0 — 2015-02-17
- 1.0.0 — 2014-08-14
- 0.2.0 — 2014-08-09
- 0.1.1 — 2014-07-04
- … 1 more at https://npm.io/package/fullname/versions

## README

# fullname

> Get the full name of the current user

Works on macOS, Linux, and Windows.

## Install

```sh
npm install fullname
```

## Usage

```js
import fullName from 'fullname';

console.log(await fullName());
//=> 'Sindre Sorhus'
```

In the rare case a name cannot be found, you could fall back to [`username`](https://github.com/sindresorhus/username).

## Related

- [fullname-cli](https://github.com/sindresorhus/fullname-cli) - CLI for this package
- [fullname-native](https://github.com/sindresorhus/fullname-native) - Native version of this package
- [username](https://github.com/sindresorhus/username) - Get the username of the current user

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