npm install --save @types/expand-tilde
This package contains type definitions for expand-tilde (https://github.com/jonschlinkert/expand-tilde).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/expand-tilde.
/**
* 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;
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
These definitions were written by Chris Arnesen.