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

istanbul-lib-processinfo

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-lib-processinfo

A utility for managing the `processinfo` folder that NYC uses.

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7M
decreased by-15.72%
Maintainers
3
Weekly downloads
 
Created

What is istanbul-lib-processinfo?

The istanbul-lib-processinfo package is part of the Istanbul code coverage ecosystem. It is responsible for managing and tracking process information for the purpose of code coverage analysis. This package helps in collecting and storing data about the execution of test processes, which is crucial for generating accurate code coverage reports.

What are istanbul-lib-processinfo's main functionalities?

ProcessInfo Creation

This feature allows the creation of a ProcessInfo object for a given process ID. The object contains metadata about the process, such as coverage data, which can be used for reporting.

const { create } = require('istanbul-lib-processinfo');
const processInfo = create(process.pid);

Writing ProcessInfo to Disk

This feature enables the ProcessInfo object to be serialized and written to disk. This is useful for persisting coverage information between test runs or for later analysis.

processInfo.write();

Loading ProcessInfo from Disk

This feature allows loading previously saved ProcessInfo objects from disk. This is useful for aggregating coverage data from multiple test runs.

const { loadProcessInfos } = require('istanbul-lib-processinfo');
const processInfos = loadProcessInfos();

Other packages similar to istanbul-lib-processinfo

FAQs

Package last updated on 02 Jun 2022

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