Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # istanbul-lib-report
  2. [![Greenkeeper badge](https://badges.greenkeeper.io/istanbuljs/istanbul-lib-report.svg)](https://greenkeeper.io/)
  3. [![Build Status](https://travis-ci.org/istanbuljs/istanbul-lib-report.svg?branch=master)](https://travis-ci.org/istanbuljs/istanbul-lib-report)
  4. Core reporting utilities for istanbul.
  5. ## Example usage
  6. ```js
  7. const libReport = require('istanbul-lib-report');
  8. const reports = require('istanbul-reports');
  9. // coverageMap, for instance, obtained from istanbul-lib-coverage
  10. const coverageMap;
  11. const configWatermarks = {
  12. statements: [50, 80],
  13. functions: [50, 80],
  14. branches: [50, 80],
  15. lines: [50, 80]
  16. };
  17. // create a context for report generation
  18. const context = libReport.createContext({
  19. dir: 'report/output/dir',
  20. // The summarizer to default to (may be overridden by some reports)
  21. // values can be nested/flat/pkg. Defaults to 'pkg'
  22. defaultSummarizer: 'nested',
  23. watermarks: configWatermarks,
  24. coverageMap,
  25. })
  26. // create an instance of the relevant report class, passing the
  27. // report name e.g. json/html/html-spa/text
  28. const report = reports.create('json', {
  29. skipEmpty: configSkipEmpty,
  30. skipFull: configSkipFull
  31. })
  32. // call execute to synchronously create and write the report to disk
  33. report.execute(context)
  34. ```