Skip to main content

getUser

Callable

  • getUser(catalogDir: string): (id: string) => Promise<undefined | User>

  • Returns a user from EventCatalog.

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

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

    // Gets the user with the given id
    const user = await getUser('eventcatalog-core-user');