Skip to main content

isService

Callable

  • isService(directory: string): (path: string) => Promise<boolean>

  • Check to see if the path is a service.

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

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

    // returns true if the path is a service
    await isService('/services/InventoryService/index.mdx');