UNPKG

320 BTypeScriptView Raw
1/**
2 * Bash-like tilde expansion for node.js.
3 * Expands a leading tilde (~) in a file path to the user home directory, or ~+ to the cwd.
4 *
5 * @param {string} filePath - a file path to expand
6 * @returns {string} the expanded file path
7 */
8declare function expandTilde(filePath: string): string;
9
10export = expandTilde;