Skip to content
Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev
JavaScript TypeScript
Branch: master
Clone or download
Latest commit f85a087 May 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.editorconfig Require Node.js 6 May 24, 2018
.gitattributes Require Node.js 6 May 24, 2018
.gitignore Require Node.js 6 May 24, 2018
.npmrc Require Node.js 6 May 24, 2018
.travis.yml Require Node.js 8, add TypeScript definition (#17) Apr 29, 2019
index.d.ts Require Node.js 8, add TypeScript definition (#17) Apr 29, 2019
index.js Meta tweaks Apr 29, 2019
index.test-d.ts Require Node.js 8, add TypeScript definition (#17) Apr 29, 2019
license Require Node.js 6 May 24, 2018
package.json 4.0.0 Apr 29, 2019
readme.md Require Node.js 6 May 24, 2018
test.js Meta tweaks Apr 29, 2019

readme.md

untildify Build Status

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

Install

$ npm install untildify

Usage

const untildify = require('untildify');

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

Related

See tildify for the inverse.

License

MIT © Sindre Sorhus

You can’t perform that action at this time.