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,527
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    3,527
  • 2.0.0
    1,780,133
  • 1.2.0
    593,476
  • 1.1.2
    722
  • 1.1.1
    16
  • 1.1.0
    805
  • 1.0.0
    25,209
  • 0.2.0
    3,056
  • 0.1.0
    28

Package Sidebar

Install

npm i tildify

Weekly Downloads

1,618,634

Version

3.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus