1 | # tildify [![Build Status](https://travis-ci.org/sindresorhus/tildify.svg?branch=master)](https://travis-ci.org/sindresorhus/tildify)
|
2 |
|
3 | > Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` => `~/dev`
|
4 |
|
5 |
|
6 | ## Install
|
7 |
|
8 | ```
|
9 | $ npm install --save tildify
|
10 | ```
|
11 |
|
12 |
|
13 | ## Usage
|
14 |
|
15 | ```js
|
16 | var tildify = require('tildify');
|
17 |
|
18 | tildify('/Users/sindresorhus/dev');
|
19 | //=> '~/dev'
|
20 | ```
|
21 |
|
22 |
|
23 | ## Related
|
24 |
|
25 | See [untildify](https://github.com/sindresorhus/untildify) for the inverse.
|
26 |
|
27 |
|
28 | ## License
|
29 |
|
30 | MIT © [Sindre Sorhus](http://sindresorhus.com)
|