Socket
Socket
Sign inDemoInstall

@types/istanbul-lib-report

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/istanbul-lib-report

TypeScript definitions for istanbul-lib-report


Version published
Weekly downloads
19M
decreased by-18.92%
Maintainers
1
Install size
15.7 kB
Created
Weekly downloads
 

Package description

What is @types/istanbul-lib-report?

The @types/istanbul-lib-report package provides TypeScript type definitions for istanbul-lib-report, which is a library for generating code coverage reports in various formats. It is part of the Istanbul code coverage tooling ecosystem. These type definitions enable TypeScript developers to use istanbul-lib-report in a type-safe manner, benefiting from compile-time type checks and IntelliSense in their IDE.

What are @types/istanbul-lib-report's main functionalities?

Creating a report context

This feature allows you to create a report context specifying the output directory and watermarks for coverage metrics. The context is used to generate reports.

import { createContext } from 'istanbul-lib-report';
const context = createContext({
  dir: './coverage',
  watermarks: {
    statements: [50, 80],
    functions: [50, 80],
    branches: [50, 80],
    lines: [50, 80]
  }
});

Generating a report

After creating a report context, you can generate a report in various formats (e.g., HTML, JSON) using the istanbul-reports package. This example demonstrates generating an HTML report.

import { create } from 'istanbul-reports';
const report = create('html', context);
report.execute(summarizer);

Other packages similar to @types/istanbul-lib-report

Readme

Source

Installation

npm install --save @types/istanbul-lib-report

Summary

This package contains type definitions for istanbul-lib-report (https://istanbul.js.org).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-lib-report.

Additional Details

  • Last updated: Tue, 21 Jan 2020 01:00:06 GMT
  • Dependencies: @types/istanbul-lib-coverage
  • Global values: none

Credits

These definitions were written by Jason Cheatham (https://github.com/jason0x43), and Zacharias Björngren (https://github.com/zache).

FAQs

Last updated on 21 Jan 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc