Hello there! How can I get the main path of the app? Take a look at this example:
1) I have a module that return the app path, and I install it globally npm install -g mymodule 2) Than I have my app.js installed on /home/myuser/app.js mymodule = require('mymodule'); console.log(mymodule.path()); 3) mymodule.path() needs to return the app path: /home/myuser How can I do this? -- Att, Alan Hoffmeister -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en