Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | 6 jaren geleden | |
---|---|---|
.. | ||
index.js | 7 jaren geleden | |
license | 7 jaren geleden | |
package.json | 6 jaren geleden | |
readme.md | 7 jaren geleden |
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