Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 7 年之前 | |
---|---|---|
.. | ||
index.js | 7 年之前 | |
license | 7 年之前 | |
package.json | 7 年之前 | |
readme.md | 7 年之前 |
Convert an absolute path to a tilde path:
/Users/sindresorhus/dev
→~/dev
$ npm install --save tildify
const tildify = require('tildify');
tildify('/Users/sindresorhus/dev');
//=> '~/dev'
See untildify for the inverse.
MIT © Sindre Sorhus