PurePath.stem property
pathlib-ts > PurePath > stem
PurePath.stem property
Section titled “PurePath.stem property”Returns the final component without its last suffix.
Signature:
get stem(): string;Remarks
Section titled “Remarks”If the name has multiple suffixes, only the final one is removed. Use PurePath.withSuffix() or PurePath.withStem() to create modified paths.