npm.devtool.tech
👏 You can access tildify package with using tildify variable in browser devtools!
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

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

🔎Explore Package🔎CDN Script

Score

Popularity39/100
Quality96/100
Maintenance100/100