JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1679
  • Score
    100M100P100Q157003F
  • License MIT

Macaca coverage tool

Package Exports

  • macaca-coverage

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (macaca-coverage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

macaca-coverage

NPM version build status Test coverage node version npm download

Macaca coverage tool

Use as CLI

Install Macaca command-line tool form npm

$ npm i macaca-cli -g
$ macaca coverage -h

Use as Node.js module

Install it form npm

$ npm i macaca-coverage --save-dev
import Coverage from 'macaca-coverage';

const {
  collector,
  Reporter,
} = Coverage({
  runtime: 'web' // web, iOS, Android
});

const reporter = new Reporter();

collector.add(__coverage__);

reporter.addAll([
  'html',
  'lcov'
]);

reporter.write(collector, true, () => {
});

Contributors

|
xudafeng

| :---: |

This project follows the git-contributor spec, auto upated at Sun Mar 25 2018 17:09:48 GMT+0800.

License

The MIT License (MIT)