Optional
sepOverride: "/" | "\\"By default, the path separator is determined by defaultSep. With this input you can override the path separator in use.
The file name itself. This will only be an empty string if the given path
is itself empty.
This does not include the extension.
The part of the path that is the path to the file. This will be an empty string if there is
none. Includes the all trailing and leading slashes, if they exist in path
.
The extension extracted from the path. This will be an empty string if there is no extension. This includes a leading dot, if an extension exists.
Any query '?'
and/or hash '#'
data in the given path
. This will be an empty string if
no query or hash data exists in the given path
. Includes the leading '?'
or '#'
.
Extracts a path's extension, amongst other things, from the given path, without relying on Node.js built-in packages (this works in a browser).