Home > @wixc3/fs-utils > getFullExtname
Returns file extension from the first occurrence of the “.”, unlike path.extname() which returns from the last occurrence.
Signature:
export declare function getFullExtname(filePath: string): string;
Parameter | Type | Description |
---|---|---|
filePath | string |
Returns:
string
getFullExtname('/dir/my-component.st.css') // => '.st.css'