Skip to content
sindresorhusPublic

About

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

Resources

Code of conduct

Contributing

Security policy

Stars

95 stars

Watchers

4 watching

Forks

Repository files navigation

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.

About

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

Resources

Code of conduct

Contributing

Security policy

Stars

95 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages