Convert a tilde path to an absolute path: ~/dev → /Users/sindresorhus/dev
~/dev
/Users/sindresorhus/dev
$ npm install untildify
const untildify = require('untildify'); untildify('~/dev'); //=> '/Users/sindresorhus/dev'
See tildify for the inverse.
MIT © Sindre Sorhus