rameshvarun / fullname

Get the fullname of the current user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fullname Build Status

Get the fullname of the current user

Install

$ npm install --save fullname

Tested on macOS, Linux, and Windows.

Usage

const fullname = require('fullname');

fullname().then(name => {
	console.log(name);
	//=> 'Sindre Sorhus'
});

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

Related

License

MIT © Sindre Sorhus

About

Get the fullname of the current user

License:MIT License


Languages

Language:JavaScript 100.0%