npm istambul

Istanbul instruments your ES5 and ES2015+ JavaScript code with line counters, so that you can track how well your unit-tests exercise your codebase.

More here:

  • https://istanbul.js.org/
  • https://www.npmjs.com/package/istanbul