hapijs / good

hapi process monitoring
Other
525 stars 160 forks source link

Do I have to use npm modules in order to use good reporters? #497

Closed crestenstclair closed 8 years ago

crestenstclair commented 8 years ago

I'm confused by the documentation. From what I can tell, I pass the node-module name into the module field for a reporter.

Does this mean I have to expose any of the good reporters I write as NPM modules?

arb commented 8 years ago

Nope. From the documentation:

module - a string that will be used to import a module from node_modules or a local file. Should export a single constructor function that can be invoked with new.

So module can be a npm module or a file path. Just a string that will have require called with that as the argument.

If you find the documentation confusing; please feel free to open a PR.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.