UNPKG

939 BMarkdownView Raw
1# Installation
2> `npm install --save @types/expand-tilde`
3
4# Summary
5This package contains type definitions for expand-tilde (https://github.com/jonschlinkert/expand-tilde).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/expand-tilde.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/expand-tilde/index.d.ts)
10````ts
11/**
12 * Bash-like tilde expansion for node.js.
13 * Expands a leading tilde (~) in a file path to the user home directory, or ~+ to the cwd.
14 *
15 * @param {string} filePath - a file path to expand
16 * @returns {string} the expanded file path
17 */
18declare function expandTilde(filePath: string): string;
19
20export = expandTilde;
21
22````
23
24### Additional Details
25 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
26 * Dependencies: none
27
28# Credits
29These definitions were written by [Chris Arnesen](https://github.com/carnesen).
30
\No newline at end of file