Metadata describing a plugin.

{
name: 'postgres',
description: 'PostgreSQL database plugin',
dependencies: ['logger'],
optionalDependencies: ['opentelemetry']
}
interface PluginMetadata {
    name: string;
    version: string;
    description?: string;
    dependencies?: string[];
    optionalDependencies?: string[];
}

Properties

name: string

Unique name of the plugin.

version: string
description?: string

Description of what the plugin does.

dependencies?: string[]

Names of plugins that this plugin depends on. These plugins will be initialized before this one.

optionalDependencies?: string[]

Names of plugins that this plugin can optionally use. These plugins will be initialized before this one if they are present, but the plugin will still work if they are not.