Skip to content

Repository files navigation

fullname

Get the full name of the current user

Works on macOS, Linux, and Windows.

Install

npm install fullname

Usage

import fullName from 'fullname';

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

Returns undefined if the fullname cannot be found.

In the rare case a name cannot be found, you could fall back to username.

Related

About

Get the fullname of the current user

Resources

Code of conduct

Contributing

Security policy

Stars

47 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages