(require("pete/lib/getReporters"))(names, optionsopt) → {module:pete/lib/getReporters~report|null}
- Description:
Load reporters and return a function that will pass every report to each of them.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
names |
string | Array.<string> | ||||||||||
options |
object |
<optional> |
Properties
|
Returns:
- Type
- module:pete/lib/getReporters~report | null
Type Definitions
report(err, data)
- Description:
Build and output data to all reporters.
If input data already contains a.report, just pass that through, without building new one.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
err |
Error | null | |
data |
module:pete/lib/createReport~Report | to report |