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.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i tildify

    Weekly Downloads

    1,501,862

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    2.88 kB

    Total Files

    5

    Last publish

    Collaborators

    • sindresorhus