Socket
Book a DemoInstallSign in
Socket

icj

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icj

A CLI tool for juggling Istanbul coverage files

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

icj

Build Status

An Istanbul coverage juggler. This is a command line tool that allows you to juggle Istanbul coverage files, where for various reasons it is difficult to get the output you desire.

Installation

To install, simply add to a projects package.json or install globally:

$ npm install icj -g

Commands

filter

The filter command is designed to filter JSON coverage information from Istanbul JSON coverage files. By default it would take a coverage-final.json file as input and output a coverage-filter.json filtering only coverage patterns that match coverage for TypeScript files that are part of a webpack bundle in the ./src/app path, excluding any .spec.ts test files.

The usage for the filter command is:

icj filter [input] [output]

It currently supports the following options:

OptionValueDescription
-p or --patternStringA minimatch glob string of the files to include in the filtered coverage data. Default value is: **/webpack:/src/app/**/!(*.spec).ts

Configuration

icj supports configuration via the package.json under the "icj" key. For example, to configure the filter command, it would look something like this:

{
    "icj": {
        "filter": {
            "input": "output/coverage-final.json",
            "output": "output/coverage-filtered.json",
            "pattern": "**/webpack:/src/app/**/!(*.spec).ts"
        }
    }
}

License

icj is licensed under the MIT License and Copyright 2018 by Kitson P. Kelly.

FAQs

Package last updated on 06 Apr 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.