Skip to content

PurePath.stem property

pathlib-ts > PurePath > stem

Returns the final component without its last suffix.

Signature:

get stem(): string;

If the name has multiple suffixes, only the final one is removed. Use PurePath.withSuffix() or PurePath.withStem() to create modified paths.