expand-home-dir

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i expand-home-dir

Weekly Downloads

2,247

Version

0.0.3

License

BSD

Last publish

Collaborators

  • nmjohnson