Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | il y a 7 ans | |
---|---|---|
.. | ||
index.js | il y a 7 ans | |
license | il y a 7 ans | |
package.json | il y a 7 ans | |
readme.md | il y a 7 ans |
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