Custom Istanbuljs reporter to generate json summary only for the files that have coverage below 100%
In your project:
npm install -i istanbul-reporter-missing-coverage-summary-json --save-dev
Then run nyc
with this reporter via the command line:
nyc --reporter=istanbul-reporter-missing-coverage-summary-json