3.0.0 • Published 3 years ago

tildify v3.0.0

Weekly downloads
1,124,547
License
MIT
Repository
github
Last release
3 years ago

tildify

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

Install

$ npm install tildify

Usage

import tildify from 'tildify';

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

Related

See untildify for the inverse.