tildify ![Build Status](https://camo.githubusercontent.com/f4ba488811657b009e39667108d1150399b689d635f3f8ecebcec851c85669b6/68747470733a2f2f7472617669732d63692e636f6d2f73696e647265736f726875732f74696c646966792e7376673f6272616e63683d6d6173746572)
Convert an absolute path to a tilde path:
/Users/sindresorhus/dev
→~/dev
Install
$ npm install tildify
Usage
const tildify = require('tildify');
tildify('/Users/sindresorhus/dev');
//=> '~/dev'
Related
See untildify for the inverse.