untildify

Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev

untildify

Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev

$ npm install --save untildify
var untildify = require('untildify');
 
untildify('~/dev');
//=> /Users/sindresorhus/dev 

See tildify for the inverse.

MIT © Sindre Sorhus