Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
istanbul-sourcemap-report
Advanced tools
Utility to generate coverage reports for sources from compiled code coverage using SourceMaps
Utility to generate coverage reports from compiled code coverage via SourceMaps.
Opinionated fork from remap-istanbul
(https://github.com/SitePen/remap-istanbul).
My goals were following:
Also there is one big thing that need to be done - make unit test coverage, instead of functional as it is now. Have not done yet - just converted to jasmine.
BTW - I also removed grunt and gulp plugins from project, because I think it should be separate packages.
npm install istanbul-sourcemap-report
istanbul-sourcemap-report ./coverage/coverage.json --json.file=./coverage/coverage-remapped.json --html.dir=./coverage/coverage-remapped
Possible options:
--exclude=<glob>
- glob expression for files to exclude--<report-type>.<option>=<value>
- options for reporters--<report-type>
- enable report type (not required if there is options for report type)const remap = require('istanbul-sourcemap-report');
remap([
// coverage files for mapping to sources
'./coverage/coverage.json'
], {
// reporters configuration
json: { file: './coverage/coverage-remapped.json' },
html: { dir: './coverage/coverage-remapped' },
}, {
// remapping options
// exclude? - glob expression using minimatch
// readFile? - a function that can read a file
// syncronously
// readJSON? - a function that can read and parse a
// JSON file syncronously
// sources? - a Istanbul store where inline sources will be
// added
// warn? - a function that logs warnings
});
FAQs
Utility to generate coverage reports for sources from compiled code coverage using SourceMaps
The npm package istanbul-sourcemap-report receives a total of 2 weekly downloads. As such, istanbul-sourcemap-report popularity was classified as not popular.
We found that istanbul-sourcemap-report demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.