Answer by Calin for Node.JS know where program is launched from
You can get the current directory of the process with process.cwd().
View ArticleNode.JS know where program is launched from
i'm asking myself if it is possible to see where the user is launching the program from ?Example : script is in /home/user1/test.js, and the user is inside /home/user1/a-dir/, when he enters$ node...
View Article
More Pages to Explore .....