tildify
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    3,581
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    3,581
  • 2.0.0
    2,269,048
  • 1.2.0
    849,783
  • 1.1.2
    1,033
  • 1.1.1
    20
  • 1.1.0
    1,272
  • 1.0.0
    37,120
  • 0.2.0
    4,154
  • 0.1.0
    37

Package Sidebar

Install

npm i tildify

Weekly Downloads

1,619,222

Version

3.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus