fullname

Get the fullname of the current user

Usage no npm install needed!

<script type="module">
  import fullname from 'https://cdn.skypack.dev/fullname';
</script>

README

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