On Tue, Dec 24, 2013 at 1:07 PM, Sitnin <[email protected]> wrote:
> Is there a possibility to make path.resolve() teach how to flatten HOME
> directory shortcut "~"?

No, path doesn't do that, and won't.

Search node issue tracker for commentary on won't, and search
npmjs.org for modules that will do this (sorry, don't know one off top
of my head).

Finding home across unix/windows is not trivial, but if you don't
care, just do regex replace on /^~\// with process.env.HOME.

Sam

-- 
-- 
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