Skip to content

Latest commit

 

History

History

40424298

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

View on StackOverflow ..

Definitely, the easiest way to do it is using username

Install:

$ npm install username

Then:

const username = require('username');

(async () => {
    console.log(await username());
	//=> 'current_username'
})();