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                                ...           7 years ago
Maintainers (1)
Downloads
Today 2,770
This Week 23,792
This Month 43,734
Last Day 4,892
Last Week 30,033
Last Month 125,727
Dependencies (0)
None
Dev Dependencies (3)
Dependents (566)

Copyright 2014 - 2016 © taobao.org |