Skip to main content

getTeams

Callable

  • getTeams(catalogDir: string): (options?: {}) => Promise<Team[]>

  • Returns all teams from EventCatalog.

    @example
    import utils from '@eventcatalog/utils';

    const { getTeams } = utils('/path/to/eventcatalog');

    // Gets all teams from the catalog
    const channels = await getTeams();