The global flarum variable.
flarum
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!} Copy
<caption>Check if `flarum-tags` is present</captions>if ('flarum-tags' in flarum.extensions) { // Tags is installed and enabled!}
Contains the compiled ES Module for Flarum's core.
You shouldn't need to access this directly for any reason.
Contains the compiled ES Modules for all Flarum extensions.
The global
flarumvariable.Contains the compiled ES Modules for all Flarum extensions and core.
Example