site_marriage/node_modules/tildify
2019-10-20 20:15:52 +02:00
..
index.js migration titane -> nickel 2019-10-20 20:15:52 +02:00
license migration titane -> nickel 2019-10-20 20:15:52 +02:00
package.json migration titane -> nickel 2019-10-20 20:15:52 +02:00
readme.md migration titane -> nickel 2019-10-20 20:15:52 +02:00

tildify Build Status

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

Install

$ npm install --save tildify

Usage

const tildify = require('tildify');

tildify('/Users/sindresorhus/dev');
//=> '~/dev'

See untildify for the inverse.

License

MIT © Sindre Sorhus