Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 236 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 236 Bytes

expandUser.js

python os.path.expanduser equivalent in nodejs

Install

npm i https://github.com/loynoir/expandUser.js

Example

const expandUser = require('expandUser');
console.log(expandUser('~/~/foo/bar/'));