By "project folder", I assume you mean "the folder the user is currently at 
in their terminal." If so, use process.cwd():
  http://nodejs.org/api/process.html#process_process_cwd

Hope that helps,
  -- Joel

On Saturday, August 3, 2013 12:24:20 PM UTC-7, Mark Hahn wrote:
>
> I'm using an npm bin config to create a symlink to a script in my project 
> folder.  When that bin script runs, it has a working directory of the dir 
> the symlink is in, not the project folder.  How do I find the project 
> folder location inside that bin script? 

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to