aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tildify/readme.md
blob: 2a70d6988bc34b53b8ed98b3be5a4187979a5349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# tildify [![Build Status](https://travis-ci.org/sindresorhus/tildify.svg?branch=master)](https://travis-ci.org/sindresorhus/tildify)

> Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`


## Install

```
$ npm install --save tildify
```


## Usage

```js
const tildify = require('tildify');

tildify('/Users/sindresorhus/dev');
//=> '~/dev'
```


## Related

See [untildify](https://github.com/sindresorhus/untildify) for the inverse.


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)