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

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.

🔎Explore Package🔎CDN Script

Score

Popularity38/100
Quality83/100
Maintenance100/100