getServiceByPath CallablegetServiceByPath(directory: string): (path: string) => Promise<Service>Returns a service from EventCatalog by it's path.@exampleimport utils from '@eventcatalog/utils';const { getServiceByPath } = utils('/path/to/eventcatalog');// Returns a service from the catalog by it's pathconst service = await getServiceByPath('/services/InventoryService/index.mdx');
Returns a service from EventCatalog by it's path.