qwqdanchun.github.io/node_modules/tildify
qwqdanchun 1b6a0fbb18 test 2022-11-11 19:16:46 +08:00
..
index.d.ts test 2022-11-11 19:16:46 +08:00
index.js test 2022-11-11 19:16:46 +08:00
license test 2022-11-11 19:16:46 +08:00
package.json test 2022-11-11 19:16:46 +08:00
readme.md test 2022-11-11 19:16:46 +08:00

readme.md

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'

See untildify for the inverse.

License

MIT © Sindre Sorhus