How would I get the path to the script in node.js? I know there's
, but that only refers to the directory where the script was called, not of the script itself. For instance, say I'm in
and I run the following command:
If I call
, I get
. Is there a way to get that directory?