New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lcov-sourcemap

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lcov-sourcemap

Transform an LCOV file using sourcemaps.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

lcov-sourcemap

Transform an LCOV file using sourcemaps.

Wat?

  • Run tests against transformed, concat'ed, etc. dist file
  • Get code coverage per source file

Install

Install with npm

npm install --save-dev lcov-sourcemap

Usage

var lcovSourcemap = require("lcov-sourcemap");
lcovSourcemap("./coverage/lcov-raw.info", {
	app: "./dist/js/app.js.map",
	others: "./dist/js/others.js.map"
}, "./src").then(function (lcov) {
    // lcov string
});

lcovSourcemap.writeLcov("./coverage/lcov-raw.info", {
	app: "./dist/js/app.js.map",
	others: "./dist/js/others.js.map"
}, "./src", "./coverage/lcov.info").then(function () {
    // Done!
});

lcovSourcemap(lcovFilePath, sourcemaps, sourceDir)

  • lcovFilePath (String): Lcov file.
  • sourcemaps (Object | Array | String): Array or map of source map files or a string of one source map file.
  • sourceDir (String): Source directory to look for files (checks for existence).
  • return (Promise): Promise containing Lcov string

lcovSourcemap.writeLcov(lcovFilePath, sourcemaps, sourceDir, outputLcovFilePath)

  • Arguments similar to lcovSourceMap
  • outputLcovFilePath (String): Output lcov file path.
  • return (Promise): Resolves when write is complete

Keywords

lcov

FAQs

Package last updated on 25 Mar 2016

Did you know?

Socket

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.

Install

Related posts