-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Reporters / Printers #19
Comments
Yeah, it definitely makes sense, I'll have a look at adding custom print functions asap. |
I've been thinking about that, and even though it's not hard to add a custom print function, I want to better understand your use case. I don't think it's a good idea to use But if you don't need the logic inside commands, if default behaviour is enough, you can use const { analyze } = require('whybundled');
const report = analyze(stats);
customPrint(report); |
Oh we'd totally be using Since this was conceived as a CLI, I didn't want to make a request that the API be opened up - I don't think that work is needed. |
Oh, ok :) Cool! It shouldn't be much work to add that. I'll try and put up a PR in couple of days. |
Published as v1.4.0 |
(You might have noticed that I'm enthusiastic about your project 😄)
While the default output is definitely colorful, distinct, and pleasant to look at, I'd like to request the ability to use a custom reporter / printer for controlling the styles applied to the output. I'd like to use this as a component in a project that follows the "stylish conventions" and a custom reporter would help me to keep the output for
whybundled
in line with that style.The text was updated successfully, but these errors were encountered: