Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 656 Bytes

readme.md

File metadata and controls

28 lines (18 loc) · 656 Bytes

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'

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

Related