expand-tilde
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or ~+
to the cwd.
Install with npm
npm i expand-tilde --save
See the Bash documentation for Tilde Expansion.
Usage
var expandTilde = require('expand-tilde');
expandTilde('~')
expandTilde('~+')
Run tests
Install dev dependencies:
npm i -d && npm test
Related
- braces: Bash-like brace expansion for node.js
- tildify: converts file paths to tildes
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 19, 2015.