JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11895936
  • Score
    100M100P100Q230431F
  • License

Bash-like tilde expansion for node.js. Expands leadings tildes in filepaths to the user home directory.

Package Exports

  • expand-tilde

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (expand-tilde) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

expand-tilde NPM version

Bash-like tilde expansion for node.js. Expands leadings tildes in filepaths to the user home directory.

Install with npm

npm i expand-tilde --save

See the Bash documentation for Tilde Expansion.

Usage

var expandTilde = require('expand-tilde');

expandTilde('~')
//=> '/Users/jonschlinkert'

expandTilde('~+')
//=> process.cwd()

Run tests

Install dev dependencies:

node i -d && mocha

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.