Function: isService()
isService(
directory): (path) =>Promise<any>
Defined in: services.ts:467
Check to see if the path is a service.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
Promise<any>
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');