UNPKG

@types/expand-tilde

Version:
30 lines (23 loc) 939 B
# Installation > `npm install --save @types/expand-tilde` # Summary This package contains type definitions for expand-tilde (https://github.com/jonschlinkert/expand-tilde). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/expand-tilde. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/expand-tilde/index.d.ts) ````ts /** * 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; ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: none # Credits These definitions were written by [Chris Arnesen](https://github.com/carnesen).