Untildify CommonJS: Bash Paths Simplified for CommonJS

Untildify-commonjs

  • Convert a tilde path to an absolute path: ~/dev/Users/john/dev
  • Inspired by untilify by Sindre Sorhus
  • Since untildify uses ES6 syntax, I created this package to for those who use CommonJS environment.

Install

npm install untildify-commonjs

Usage

const untildify = require('untildify-commonjs');

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

Related

See tildify-commonjs for the inverse.


Download Details:

Author: Mehmetcanfarsak
Source Code: https://github.com/mehmetcanfarsak/untildify-commonjs 
License: MIT license

#bash #nodejs #npm #package 

Untildify CommonJS: Bash Paths Simplified for CommonJS
1.40 GEEK