Have ideas to improve npm?Join in the discussion! »

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

    2.0.0 • Public • Published

    tildify Build Status

    Convert an absolute path to a tilde path: /Users/sindresorhus/dev~/dev

    Install

    $ npm install tildify
    

    Usage

    const tildify = require('tildify');
     
    tildify('/Users/sindresorhus/dev');
    //=> '~/dev'

    Related

    See untildify for the inverse.

    License

    MIT © Sindre Sorhus

    Install

    npm i tildify

    DownloadsWeekly Downloads

    1,144,970

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.94 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar