Interfaces

ParsedPath

Namespaces

posix
win32

Properties

SP delimiter: string

Type:
  • string

SP sep: string

Type:
  • string

Methods

SM basename(p: string, ext: string) string

Parameters:
Name Type Argument
p string
ext string <optional>
Returns: { string }

SM dirname(p: string) string

Parameters:
Name Type
p string
Returns: { string }

SM extname(p: string) string

Parameters:
Name Type
p string
Returns: { string }

SM format(pP: path.ParsedPath) string

Parameters:
Name Type
pP path.ParsedPath
Returns: { string }

SM isAbsolute(p: string) boolean

Parameters:
Name Type
p string
Returns: { boolean }

SM join(...paths: any) string

Parameters:
Name Type Argument
...paths any <repeatable>
Returns: { string }

SM normalize(p: string) string

Parameters:
Name Type
p string
Returns: { string }

SM parse(p: string) path.ParsedPath

Parameters:
Name Type
p string
Returns: { path.ParsedPath }

SM relative(from: string, to: string) string

Parameters:
Name Type
from string
to string
Returns: { string }

SM resolve(...pathSegments: any) string

Parameters:
Name Type Argument
...pathSegments any <repeatable>
Returns: { string }