tildify
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tildify 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (a year ago)

8 Versions

  • 2.0.0                                ...           a year ago
  • 1.2.0                                ...           4 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 1,761
This Week 6,997
This Month 98,104
Last Day 5,236
Last Week 29,045
Last Month 134,176
Dependencies (0)
None
Dev Dependencies (3)
Dependents (559)

Copyright 2014 - 2017 © taobao.org |