UNPKG

bajo

Version:

A framework to build a giant monstrous app rapidly

25 lines (18 loc) 935 B
--- title: async function eachPlugins() --- Walk through all loaded plugins and execute the callback handler. ###### Parameters: | Name | Type | Default Value | Description | | ---- | ---- | ------------- | ----------- | | ```handler``` | async function || callback handler. _Required_ | | ```options``` | object ||| |     ```key``` | string | ```name``` | Key of Bajo's config object that will be used as the key of returned object | |     ```glob``` | string/object || see above | |     ```ns``` | string | _Autodetect_ | If not set, it defaults to calling plugin | |     ```extend``` | string || see above | |     ```extendHandler``` | function | ```handler``` | see above | |     ```useBajo``` | boolean | ```false``` | weather to scan **bajo** package dir too | ###### Returns: ```object``` #### Example