{"library":"istanbul-lib-instrument","type":"library","category":null,"description":"istanbul-lib-instrument serves as the core engine within the Istanbul.js ecosystem for transforming JavaScript source code into an instrumented form suitable for code coverage analysis. It injects tracking statements (for lines, functions, branches, and statements) into code. The library, currently at version 6.0.3 (released June 2024), is an active component of the `istanbuljs` monorepo, which receives regular updates across its packages to support modern JavaScript features and tooling. Its key differentiator is its reliance on Babel for its instrumentation process, providing two primary modes of operation: a direct programmatic API for straightforward source code transformation, and a `programVisitor` function designed for seamless integration within custom Babel plugins, which is the recommended approach for developers already utilizing Babel in their build pipelines.","language":"javascript","status":"active","version":"6.0.3","tags":["javascript","coverage","istanbul","js","instrumentation"],"last_verified":"Wed May 27","install":[{"cmd":"npm install istanbul-lib-instrument","imports":["import { createInstrumenter } from 'istanbul-lib-instrument';","import { Instrumenter } from 'istanbul-lib-instrument';","import { programVisitor } from 'istanbul-lib-instrument';"]},{"cmd":"yarn add istanbul-lib-instrument","imports":[]},{"cmd":"pnpm add istanbul-lib-instrument","imports":[]}],"homepage":"https://istanbul.js.org/","github":"https://github.com/istanbuljs/istanbuljs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/istanbul-lib-instrument","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/istanbul-lib-instrument/compatibility"}}