Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

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

You can’t perform that action at this time.