Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

coverage-collector

r3b1kAPLv20.0.5

A simple server for collecting code coverage objects

coverage, collector, istanbul

readme

coverage-collector

a simple server for collection of code coverage objects

Starting the server

    var collector=require('coverage-collector');
    collector({port:3001});

Collecting data

curl -X POST http://localhost:3001/data -H "Content-Type: application/json" -d '{"coverage":"object"}'

Retrieving collected data

curl -X GET http://localhost:3001/data returns


###Stopping the server
```curl -X GET http://localhost:3001/done

Contributing

If you have issues or you want to discuss other use cases, feel free to open an issue or send a pull request on github