|
|
il y a 2 ans | |
|---|---|---|
| .. | ||
| index.d.ts | il y a 2 ans | |
| index.js | il y a 2 ans | |
| license | il y a 2 ans | |
| package.json | il y a 2 ans | |
| readme.md | il y a 2 ans | |
Convert an absolute path to a tilde path:
/Users/sindresorhus/dev→~/dev
$ npm install tildify
const tildify = require('tildify');
tildify('/Users/sindresorhus/dev');
//=> '~/dev'
See untildify for the inverse.
MIT © Sindre Sorhus