Bachir Soussi Chiadmi ac58a24f5c added bower, gulp | 7 anni fa | |
---|---|---|
.. | ||
index.js | 7 anni fa | |
license | 7 anni fa | |
package.json | 7 anni fa | |
readme.md | 7 anni fa |
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