Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fullname-native

sindresorhus29MIT3.0.0TypeScript support: included

Get the fullname of the current user

binding, native, addon, name, fullname, realname, user, gecos, pwuid, uid

readme

fullname-native

Get the fullname of the current user

Install

npm install fullname-native

This is a native binding and expects you to have the required toolchain. (ignore the node-gyp install)

Tested to work on macOS, Linux and Windows.

Usage

import fullname from 'fullname-native';

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

Returns undefined if the fullname cannot be found.