Quantcast
Channel: Node.JS know where program is launched from - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Node.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
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>