package
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
npm install expand-tildeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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 install --save expand-tildeSee the Bash documentation for Tilde Expansion.
var expandTilde = require('expand-tilde');
expandTilde('~')
//=> '/Users/jonschlinkert'
expandTilde('~+')
//=> process.cwd()Install dev dependencies:
npm i -d && npm testPull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verbInstall dev dependencies:
$ npm install -d && npm testJon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on December 08, 2016.
doowb
brian.woodward@gmail.com
true if the given string looks like a glob pattern or an extglob pattern… more | homepageEstimated unpacked size across 3 packages.
7.9 kB
Includes dependencies.