PathPlugin.
Classes
PathPlugableClass
Extends PlugableClass.
new PathPlugableClass():
PathPlugableClass
Returns PathPlugableClass. Inherited from PlugableClass.constructor.
| Property | Type |
|---|---|
functions | FunctionRecord |
Methods
basename(…
args):string
| Parameter | Type | Description |
|---|---|---|
…args | string[] |
Returns string.
directory(
filePath): `/${string}`
| Parameter | Type | Description |
|---|---|---|
filePath | `/${string}` |
Returns `/${string}`.
extension(
filePath):string
| Parameter | Type | Description |
|---|---|---|
filePath | string |
Returns string file extension without dot.
extname(
filePath):string
| Parameter | Type | Description |
|---|---|---|
filePath | string |
Returns string file extension with dot.
install(
definition, …ids):void|Errored
| Parameter | Type | Description |
|---|---|---|
definition | string | Function | StringTuple | |
…ids | string[] |
Returns void | Errored. Inherited from PlugableClass.install.
join<
T>(string, …strings):T
| Type Parameter | Description |
|---|---|
T extends string |
| Parameter | Type | Description |
|---|---|---|
string | T | |
…strings | string[] |
Returns T.
relative(
from,to):string
| Parameter | Type | Description |
|---|---|---|
from | string | |
to | string |
Returns string.
resolve(…
filePath): `/${string}`
| Parameter | Type | Description |
|---|---|---|
…filePath | string[] |
Returns `/${string}`.
toString():
string
Returns string. Inherited from PlugableClass.toString.
Variables
PathPlugin
constPathPlugin:PathPlugableClass
Functions
basenamePathPlug
basenamePathPlug(…
args):string
| Parameter | Type |
|---|---|
…args | string[] |
Returns string.
directoryPathPlug
directoryPathPlug(
filePath): `/${string}`
| Parameter | Type |
|---|---|
filePath | `/${string}` |
Returns `/${string}`.
extensionPathPlug
extensionPathPlug(
filePath):string
| Parameter | Type |
|---|---|
filePath | string |
Returns string.
extnamePathPlug
extnamePathPlug(
filePath):string
| Parameter | Type |
|---|---|
filePath | string |
Returns string.
joinPathPlug
joinPathPlug<
T>(string, …strings):T
| Type Parameter | Description |
|---|---|
T extends string |
| Parameter | Type | Description |
|---|---|---|
string | T | |
…strings | string[] |
Returns T.
relativePathPlug
relativePathPlug(
from,to):string
| Parameter | Type |
|---|---|
from | string |
to | string |
Returns string.
resolvePathPlug
resolvePathPlug(…
filePath): `/${string}`
| Parameter | Type |
|---|---|
…filePath | string[] |
Returns `/${string}`.