Flarum (v1.8.10)
    Preparing search index...

    Interface FlarumObject

    The global flarum variable.

    Contains the compiled ES Modules for all Flarum extensions and core.

    <caption>Check if `flarum-tags` is present</captions>
    if ('flarum-tags' in flarum.extensions) {
    // Tags is installed and enabled!
    }
    interface FlarumObject {
        core: Readonly<ESModule>;
        extensions: Readonly<Record<string, ESModule>>;
    }
    Index

    Properties

    Properties

    Contains the compiled ES Module for Flarum's core.

    You shouldn't need to access this directly for any reason.

    extensions: Readonly<Record<string, ESModule>>

    Contains the compiled ES Modules for all Flarum extensions.

    <caption>Check if `flarum-tags` is present</captions>
    if ('flarum-tags' in flarum.extensions) {
    // Tags is installed and enabled!
    }