I want to align our output correctly so it is easier to read:
[Yeoman Doctor] Running sanity checks on your system
NODE_PATH match the npm root....................................OK
Global configuration file is valid..............................OK
Everything looks all right!
Two goals:
Having dotted line as separator (make it more "header" like)
Spanning it to the terminal width when possible.
There's a lot of table modules that could work, but they return a blob string rather than line per line. We need line per line here because in case of errors, we'll output help information under each check line.
A solution could be to just split the table module output on new lines and match the index, but I want to run it to the team before. There's probably a solution out there already.
I want to align our output correctly so it is easier to read:
Two goals:
There's a lot of table modules that could work, but they return a blob string rather than line per line. We need line per line here because in case of errors, we'll output help information under each check line.
A solution could be to just split the table module output on new lines and match the index, but I want to run it to the team before. There's probably a solution out there already.