davityavryan / yarn-audit-html

Generate a HTML report for Yarn Audit
MIT License
29 stars 13 forks source link

Add a --title parameter #3

Closed EliuX closed 5 years ago

EliuX commented 5 years ago

I am creating different reports and it would be nice if I could specify an optional parameter --title or -t to indicate a title different to "Yarn Audit Report". E.g.

yarn audit --json | yarn-audit-html -t "New issues to solve"

Which would generate something like

image

davityavryan commented 5 years ago

Hi @EliuX,

Thanks for a suggestion. There is a non documented option which might help you. You can use your own template for report and customise the way that you want. Sounds ok?

I don't want to add your suggested option not because I am lazy but because the request is not generic. I might say that it would make sense also to have ability for user to specify sub header format.

p.s. Sorry that the option was not documented. I will add that.

EliuX commented 5 years ago

Thanks for the soon replay @davityavryan. Yes, I saw when using --help that such option was there. But I actually just need the same template as you use, but just to customize the only part that is fixed in that template. But don't worry, I understand your argument. Thanks indeed.