Skip to content

API - Paths

Allows you to access file paths.

When extending BasePlugin, these functions can be accessed via this.paths.*

When extending BaseComponent, these functions can be accessed via this.plugin.paths.*

Functions

absolute(url) : string

Converts a relative path to an absolute path, starting from the URL where the plugin is located.

Returns the absolute path as a string.

Field Type Description Example
url string Relative URL to a file './sound.wav'
Back to top