Bachir Soussi Chiadmi ac58a24f5c added bower, gulp | 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