Installation
npm install --save @types/path-complete-extname
Summary
This package contains type definitions for path-complete-extname (https://github.com/ruyadorno/path-complete-extname).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/path-complete-extname.
index.d.ts
export = pathCompleteExtname;
/**
* Takes a file path and returns the complete file extension (multiple dots, like .tar.gz)
* Automatically determines if running under Posix or Win32 environment
*/
declare function pathCompleteExtname(path: string): string;
declare namespace pathCompleteExtname {
/**
* Takes a file path and returns the complete file extension (multiple dots, like .tar.gz)
* Uses Win32 logic for extension extraction
*/
function win32(path: string): string;
/**
* Takes a file path and returns the complete file extension (multiple dots, like .tar.gz)
* Uses Posix logic for extension extraction
*/
function posix(path: string): string;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Marcin C.