Skip to main content

Interface: IPath

Properties

delimiter

readonly delimiter: string


sep

readonly sep: string

Methods

basename()

basename(path): string

Parameters

path

string

Returns

string


dirname()

dirname(path): string

Parameters

path

string

Returns

string


extname()

extname(path): string

Parameters

path

string

Returns

string


format()

format(pathObj): string

Parameters

pathObj

IPathObject

Returns

string


isAbsolute()

isAbsolute(path): boolean

Parameters

path

string

Returns

boolean


join()

join(...paths): string

Parameters

paths

...string[]

Returns

string


normalize()

normalize(path): string

Parameters

path

string

Returns

string


parse()

parse(path): IPathObject

Parameters

path

string

Returns

IPathObject


relative()

relative(from, to): string

Parameters

from

string

to

string

Returns

string


resolve()

resolve(...paths): string

Parameters

paths

...string[]

Returns

string


toNamespacedPath()

toNamespacedPath(path): string

Parameters

path

string

Returns

string