I am new to nodejs. Can node resolve ~ (unix home directory) example ~foo, ~bar to /home/foo, /home/bar
> path.normalize(\'~mvaidya\') \'~mvaidya\' > path.resolve(
I just needed it today and the only less-evasive command was the one from the os.
os
$ node > os.homedir() '/Users/mdesales'
I'm not sure if your syntax is correct since ~ is already a result for the home dir of the current user