npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fullname

5.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:67172
$ npm install fullname
DailyWeeklyMonthlyYearly

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

  • fullname-cli - CLI for this package
  • fullname-native - Native version of this package
  • username - Get the username of the current user