node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

expand-home-dir

expand-home-dir

Expand ~/

expandHomeDir = require('expand-home-dir')
 
expandHomeDir('~')
// => /Users/azer 
 
expandHomeDir('~/foo/bar/qux.corge')
// => /Users/azer/foo/bar/qux.corge 

Install

$ npm install expand-home-dir