@types/expand-tilde
Version:
TypeScript definitions for expand-tilde
11 lines (9 loc) • 320 B
TypeScript
/**
* Bash-like tilde expansion for node.js.
* Expands a leading tilde (~) in a file path to the user home directory, or ~+ to the cwd.
*
* @param {string} filePath - a file path to expand
* @returns {string} the expanded file path
*/
declare function expandTilde(filePath: string): string;
export = expandTilde;