We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01e9e98 commit 3876b0fCopy full SHA for 3876b0f
2 files changed
README.md
@@ -272,6 +272,8 @@ hallmark --report json
272
hallmark --report [ json --pretty ]
273
```
274
275
+In the programmatic API of `hallmark` (which is not documented yet) the reporter can also be disabled by passing `{ report: false }` as the options.
276
+
277
## Install
278
279
With [npm](https://npmjs.org) do:
index.js
@@ -31,7 +31,9 @@ function hallmark (options, callback) {
31
let reporter
32
let reporterOptions
33
34
- if (options.report) {
+ if (options.report === false) {
35
+ reporter = function noop () {}
36
+ } else if (options.report) {
37
// Only take one --report option
38
reporter = [].concat(options.report)[0]
39
0 commit comments