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