Function: getUsers()
getUsers(
catalogDir): (options?) =>Promise<User[]>
Defined in: users.ts:56
Returns all users from EventCatalog.
Parameters
| Parameter | Type |
|---|---|
catalogDir | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
options? | {} |
Returns
Promise<User[]>
Example
import utils from '@eventcatalog/utils';
const { getUsers } = utils('/path/to/eventcatalog');
// Gets all users from the catalog
const channels = await getUsers();