sel / 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 OS X, Linux and Windows.

Usage

var fullname = require('fullname');

fullname(function (err, name) {
	console.log(name);
	//=> Sindre Sorhus
});

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

CLI

$ npm install --global fullname
$ fullname --help

  Example
    $ fullname
    Sindre Sorhus

Related

See username to get the username of the current user.

License

MIT © Sindre Sorhus

About

Get the fullname of the current user

License:MIT License


Languages

Language:JavaScript 100.0%