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(
An example:
const os = require("os");
"~/Dropbox/sample/music".replace("~", os.homedir)