get-username
here for correct information
this README may be outdated, so checkuse
i recommend installing it into your project directory this way you can access it within your project. you could treat it like a node module
once, installed, use the child_process
node module (npm install child_process
) to launch the start.cmd
file.
once the start.cmd
is launched the c++ program will get the user and write it to username.txt
.
in username.txt
you will find your username. you can read this text file using node's file system module.
that's it!