pete/lib/getReporters

(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
Name Type Attributes Description
close boolean <optional>

set to close specified reporters

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