isService CallableisService(directory: string): (path: string) => Promise<boolean>Check to see if the path is a service.@exampleimport utils from '@eventcatalog/utils';const { isService } = utils('/path/to/eventcatalog');// returns true if the path is a serviceawait isService('/services/InventoryService/index.mdx');
Check to see if the path is a service.