Get the fullname of the current user
npm install fullname-native
This is a native binding and expects you to have the required toolchain. (ignore the node-gyp install)
Tested to work on macOS, Linux and Windows.
import fullname from 'fullname-native';
console.log(fullname);
//=> 'Sindre Sorhus'
Returns undefined
if the fullname cannot be found.