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.3
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26M
decreased by-1.81%
Maintainers
1
Weekly downloads
 
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 07 Nov 2023

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