BlackJack 3df7502993 most working, work on front end | 6 år sedan | |
---|---|---|
.. | ||
index.js | 6 år sedan | |
license | 6 år sedan | |
package.json | 6 år sedan | |
readme.md | 6 år sedan |
Convert a tilde path to an absolute path:
~/dev
=>/Users/sindresorhus/dev
$ npm install --save untildify
const untildify = require('untildify');
untildify('~/dev');
//=> '/Users/sindresorhus/dev'
See tildify for the inverse.
MIT © Sindre Sorhus