filename
Import from @varavel/vdl-plugin-sdk/utils/paths.
Returns the filename without its extension.
This is useful for deriving stable artifact names without manually stripping directory segments or extensions.
Parameters
| Parameter | Type | Description |
|---|---|---|
path |
string |
Path to inspect. |
Returns
string | undefined
The filename without its extension, or undefined when it cannot be derived.
Example
See
Powered by pathe (MIT License): https://github.com/unjs/pathe