吕君喜 406d880ac6 first | 3 éve | |
---|---|---|
.. | ||
index.js | 3 éve | |
package.json | 3 éve | |
readme.md | 3 éve |
Convert an absolute path to a tilde path:
/Users/sindresorhus/dev
=>~/dev
$ npm install --save tildify
var tildify = require('tildify');
tildify('/Users/sindresorhus/dev');
//=> ~/dev
See untildify for the inverse.
MIT © Sindre Sorhus