expand-tilde

Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.

userdir

A simple utility to get the cross-platform user home directory