@types/expand-tilde
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

/**
 * 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/expand-tilde

Weekly Downloads

2,876

Version

2.0.2

License

MIT

Unpacked Size

3.21 kB

Total Files

5

Last publish

Collaborators

  • types