Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 7 anos atrás | |
---|---|---|
.. | ||
index.js | 7 anos atrás | |
license | 7 anos atrás | |
package.json | 7 anos atrás | |
readme.md | 7 anos atrás |
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