PathPlugin.

Classes

PathPlugableClass

Extends PlugableClass.

new PathPlugableClass(): PathPlugableClass

Returns PathPlugableClass. Inherited from PlugableClass.constructor.

PropertyType
functionsFunctionRecord

Methods

basename(…args): string

ParameterTypeDescription
argsstring[]

Returns string.

directory(filePath): `/${string}`

ParameterTypeDescription
filePath`/${string}`

Returns `/${string}`.

extension(filePath): string

ParameterTypeDescription
filePathstring

Returns string file extension without dot.

extname(filePath): string

ParameterTypeDescription
filePathstring

Returns string file extension with dot.

install(definition, …ids): void | Errored

ParameterTypeDescription
definitionstring | Function | StringTuple
idsstring[]

Returns void | Errored. Inherited from PlugableClass.install.

join<T>(string, …strings): T

Type ParameterDescription
T extends string
ParameterTypeDescription
stringT
stringsstring[]

Returns T.

relative(from, to): string

ParameterTypeDescription
fromstring
tostring

Returns string.

resolve(…filePath): `/${string}`

ParameterTypeDescription
filePathstring[]

Returns `/${string}`.

toString(): string

Returns string. Inherited from PlugableClass.toString.

Variables

PathPlugin

const PathPlugin: PathPlugableClass

Functions

basenamePathPlug

basenamePathPlug(…args): string

ParameterType
argsstring[]

Returns string.

directoryPathPlug

directoryPathPlug(filePath): `/${string}`

ParameterType
filePath`/${string}`

Returns `/${string}`.

extensionPathPlug

extensionPathPlug(filePath): string

ParameterType
filePathstring

Returns string.

extnamePathPlug

extnamePathPlug(filePath): string

ParameterType
filePathstring

Returns string.

joinPathPlug

joinPathPlug<T>(string, …strings): T

Type ParameterDescription
T extends string
ParameterTypeDescription
stringT
stringsstring[]

Returns T.

relativePathPlug

relativePathPlug(from, to): string

ParameterType
fromstring
tostring

Returns string.

resolvePathPlug

resolvePathPlug(…filePath): `/${string}`

ParameterType
filePathstring[]

Returns `/${string}`.