Opal-Estate-Pro/node_modules/tildify
2019-09-13 11:27:52 +07:00
..
index.js style Dashboard 2019-09-13 11:27:52 +07:00
license style Dashboard 2019-09-13 11:27:52 +07:00
package.json style Dashboard 2019-09-13 11:27:52 +07:00
readme.md style Dashboard 2019-09-13 11:27:52 +07: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