Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

fullname

4.0.1 • Public • Published

fullname Build Status

Get the full name of the current user

Install

$ npm install fullname

Tested on macOS, Linux, and Windows.

Usage

const fullName = require('fullname');
 
(async () => {
    console.log(await fullName());
    //=> 'Sindre Sorhus'
})();

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

Related

License

MIT © Sindre Sorhus

Install

npm i fullname

DownloadsWeekly Downloads

81,283

Version

4.0.1

License

MIT

Unpacked Size

5.62 kB

Total Files

5

Last publish

Collaborators

  • avatar