Test coverage tool. It generates html report like that
npm install semicov
...only if your code has semicolons. And it will break badly-written javascript:
if (condition) doSomething();
else doSomethingElse();
So, basically it should work very well for any code passed following jslint validations:
Put following line before very first line of your code
var semicov = require('semicov');
semicov.init('lib', 'My Awesome Lib Name'); // First argument 'lib' is name of dir with code
process.on('exit', semicov.report);
And it will generate ./coverage/index.html
for you.