BlackJack 3df7502993 most working, work on front end | 6 年之前 | |
---|---|---|
.. | ||
index.js | 6 年之前 | |
license | 6 年之前 | |
package.json | 6 年之前 | |
readme.md | 6 年之前 |
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