whoami-exec

A simple module for finding the name of the logged in user

Usage no npm install needed!

<script type="module">
  import whoamiExec from 'https://cdn.skypack.dev/whoami-exec';
</script>

README

whoami

NPM Module for getting the logged in users name

Supported on:

Windows OS Mac OS

Installation:

=> Run the following npm command:

npm install --save-dev whoami-exec

=> Use it like so:

var whoami = require('whoami-exec');

var username = whoami();