npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

tildify

2.0.0 • Public • Published

tildify Build Status

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.

License

MIT © Sindre Sorhus

install

npm i tildify

Downloadsweekly downloads

999,366

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability