--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Amen. I went through the same thing. I wish this had been a higher design priority for node, but I think I see why it wasn't. Moving JavaScript out of the browser and onto the server comes with some challenges.
4.7 __dirname vs. process.cwd
__dirname is an absolute path to the file in which this global variable was called, while process.cwd
is an absolute path to the process that runs this script. The latter might not be the same as the former
if we started the program from a different folder, e.g., $ node ./code/program.js.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/d7a3b9d1-251b-490c-a487-88e7f1c2ae57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.