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

Made by Antonio Ramirez

fullname-native

3.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:8
$ npm install fullname-native
DailyWeeklyMonthlyYearly

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.

Related

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