Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
New interface #440
Brand new reporter interface. In summary, it looks like this...
Reporters is an object. Each key is a reporter "name" and the value is an array. Inside the array, you can pass a string, an already instantiated stream object, or a configuration object.
If you pass a string, it's assumed to be a path or node module that can be required and results in a constructor function that can create new streams via
If if an already instantiated object, it needs to be some kind of stream.
Finally, if it's a configuration object it needs to have one key;
If the constructed stream has a
After all the streams are created, there are piped together using Pumpify. When events come in from the hapi server, a copy of the data payload is pushed through each pipeline to be processed by the array of streams.