Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/istanbul-lib-report

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/istanbul-lib-report

TypeScript definitions for istanbul-lib-report

  • 3.0.0
  • ts2.8
  • ts2.9
  • ts3.0
  • ts3.1
  • ts3.2
  • ts3.3
  • ts3.4
  • ts3.5
  • ts3.6
  • ts3.7
  • ts3.8
  • ts3.9
  • ts4.0
  • ts4.1
  • ts4.2
  • ts4.3
  • ts4.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

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

FAQs

Package last updated on 21 Jan 2020

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc