getChannels CallablegetChannels(directory: string): (options?: { latestOnly?: boolean }) => Promise<Channel[]>Returns all channels from EventCatalog. You can optionally specify if you want to get the latest version of the channels.@exampleimport utils from '@eventcatalog/utils';const { getChannels } = utils('/path/to/eventcatalog');// Gets all channels (and versions) from the catalogconst channels = await getChannels();// Gets all channels (only latest version) from the catalogconst channels = await getChannels({ latestOnly: true });
Returns all channels from EventCatalog.
You can optionally specify if you want to get the latest version of the channels.