JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2285597
  • Score
    100M100P100Q210168F
  • License MIT

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

Package Exports

  • tildify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tildify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tildify Build Status

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

Install

$ npm install --save tildify

Usage

var tildify = require('tildify');

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

See untildify for the inverse.

License

MIT © Sindre Sorhus