1 | // Type definitions for expand-tilde 2.0
|
2 | // Project: https://github.com/jonschlinkert/expand-tilde
|
3 | // Definitions by: Chris Arnesen <https://github.com/carnesen>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /**
|
7 | * Bash-like tilde expansion for node.js.
|
8 | * Expands a leading tilde (~) in a file path to the user home directory, or ~+ to the cwd.
|
9 | *
|
10 | * @param {string} filePath - a file path to expand
|
11 | * @returns {string} the expanded file path
|
12 | */
|
13 | declare function expandTilde(filePath: string): string;
|
14 |
|
15 | export = expandTilde;
|