README
fullname
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
- fullname-cli - CLI for this module
- fullname-native - Native version of this module
- username - Get the username of the current user
License
MIT © Sindre Sorhus