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
    4,383
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    4,383
  • 2.0.0
    1,449,752
  • 1.2.0
    330,873
  • 1.1.2
    168
  • 1.1.1
    5
  • 1.1.0
    380
  • 1.0.0
    11,912
  • 0.2.0
    2,312
  • 0.1.0
    11

Package Sidebar

Install

npm i tildify

Weekly Downloads

1,799,796

Version

3.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus