whoami NPM Module for getting the logged in users name Supported on: Installation: => Run the following npm command: npm install --save-dev whoami-exec => Use it like so: var whoami = require('whoami-exec'); var username = whoami();