Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface ModuleManifestData

    The data structure for module.json.

    interface ModuleManifestData {
        authors?: PackageAuthorData[];
        bugs?: string;
        changelog?: string;
        compatibility?: PackageCompatibilityData;
        coreTranslation?: boolean;
        description?: string;
        documentTypes?: DocumentTypesConfiguration;
        download?: string;
        esmodules?: string[];
        exclusive?: boolean;
        flags?: PackageFlagsData;
        id: string;
        languages?: PackageLanguageData[];
        library?: boolean;
        license?: string;
        manifest?: string;
        media: PackageMediaData[];
        packFolders?: PackFolderData[];
        packs?: PackageCompendiumData[];
        persistentStorage?: boolean;
        protected?: boolean;
        quickstart?: QuickstartManifestData;
        readme?: string;
        relationships?: PackageRelationshipsData;
        scripts?: string[];
        socket?: boolean;
        styles?: string[];
        title: string;
        type: "module";
        url?: string;
        version: string;
    }
    Index

    Properties

    authors?: PackageAuthorData[]

    An array of author objects who are co-authors of this package.

    bugs?: string

    A web url where bug reports may be submitted and tracked

    changelog?: string

    A web url where notes detailing package updates are available

    compatibility?: PackageCompatibilityData

    The compatibility of this version with the core Foundry software. See https://foundryvtt.com/article/versioning/ for more info on how the core software structures its releases.

    coreTranslation?: boolean

    Does this module provide a translation for the core software?

    description?: string

    An optional package description, may contain HTML. Visible on the Setup screen in "gallery" view as well as in the "Module Management" application.

    Additional document subtypes provided by this module.

    download?: string

    A publicly accessible web URL where the source files for this package may be downloaded. Required in order to support package installation.

    esmodules?: string[]

    An array of urls or relative file paths for ESModule files to include

    exclusive?: boolean

    Whether this package is a free Exclusive pack.

    An object of optional key/value flags. Packages can use this namespace for their own purposes, preferably within a namespace matching their package ID.

    id: string

    The machine-readable unique package id, should be lower-case with no spaces or special characters

    languages?: PackageLanguageData[]

    An array of language data objects which are included by this package

    library?: boolean

    A library module provides no user-facing functionality and is solely for use by other modules. Loaded before any system or module scripts.

    license?: string

    A web url or relative file path where license details may be found

    manifest?: string

    A publicly accessible web URL which provides the latest available package manifest file. Required in order to support package updates.

    An array of objects containing media info about the package.

    packFolders?: PackFolderData[]

    An array of pack folders that will be initialized once per world.

    An array of compendium packs which are included by this package

    persistentStorage?: boolean

    Whether updates should leave the contents of the package's /storage folder.

    protected?: boolean

    Whether this package uses the protected content access system.

    The Quick-Start configuration.

    readme?: string

    A web url or relative file path where readme instructions may be found

    relationships?: PackageRelationshipsData

    An organized object of relationships to other Packages

    scripts?: string[]

    An array of urls or relative file paths for JavaScript files to include

    socket?: boolean

    Whether to require a package-specific socket namespace for this package

    styles?: string[]

    An array of urls or relative file paths for CSS stylesheet files to include

    title: string

    The human-readable package title, containing spaces and special characters

    type: "module"

    The package type among world, system, and module

    url?: string

    A web url where more details about the package may be found

    version: string

    The current package version. It is recommended to stick to dot-separated numbers like "5.0.3" and to not include a leading "v" to avoid string comparison. See foundry.utils.isNewerVersion.