@types/path-complete-extname
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/path-complete-extname

Weekly Downloads

533

Version

1.0.3

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • types