Gathering detailed insights and metrics for @types/istanbul-lib-instrument
Gathering detailed insights and metrics for @types/istanbul-lib-instrument
Gathering detailed insights and metrics for @types/istanbul-lib-instrument
Gathering detailed insights and metrics for @types/istanbul-lib-instrument
The repository for high quality TypeScript type definitions.
npm install @types/istanbul-lib-instrument
Typescript
Module System
99.6
Supply Chain
95.7
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
20,163,971
Last Day
3,428
Last Week
48,922
Last Month
205,792
Last Year
2,001,094
NOASSERTION License
49,996 Stars
89,698 Commits
30,434 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 04, 2025
Latest Version
1.7.7
Package Id
@types/istanbul-lib-instrument@1.7.7
Unpacked Size
6.51 kB
Size
2.11 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
-30.2%
3,428
Compared to previous day
Last Week
-8%
48,922
Compared to previous week
Last Month
20.6%
205,792
Compared to previous month
Last Year
-5%
2,001,094
Compared to previous year
npm install --save @types/istanbul-lib-instrument
This package contains type definitions for istanbul-lib-instrument (https://istanbul.js.org).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-lib-instrument.
1import * as babelTypes from "babel-types"; 2import { FileCoverage, FileCoverageData, Range } from "istanbul-lib-coverage"; 3import { RawSourceMap } from "source-map"; 4 5export interface InstrumenterOptions { 6 coverageVariable: string; 7 preserveComments: boolean; 8 compact: boolean; 9 esModules: boolean; 10 autoWrap: boolean; 11 produceSourceMap: boolean; 12 sourceMapUrlCallback(filename: string, url: string): void; 13 debug: boolean; 14} 15 16export type InstrumenterCallback = (error: Error | null, code: string) => void; 17 18export class Instrumenter { 19 fileCoverage: FileCoverage; 20 sourceMap: RawSourceMap | null; 21 opts: InstrumenterOptions; 22 23 constructor(options?: Partial<InstrumenterOptions>); 24 25 normalizeOpts(options?: Partial<InstrumenterOptions>): InstrumenterOptions; 26 27 instrumentSync( 28 code: string, 29 filename: string, 30 inputSourceMap?: RawSourceMap, 31 ): string; 32 33 instrument( 34 code: string, 35 filenameOrCallback: string | InstrumenterCallback, 36 callback?: InstrumenterCallback, 37 inputSourceMap?: RawSourceMap, 38 ): void; 39 40 lastFileCoverage(): FileCoverageData; 41 lastSourceMap(): RawSourceMap; 42} 43 44export function createInstrumenter( 45 options?: Partial<InstrumenterOptions>, 46): Instrumenter; 47 48export interface InitialCoverage { 49 path: string; 50 hash: string; 51 gcv: any; 52 coverageData: any; 53} 54 55export function readInitialCoverage(code: string): InitialCoverage; 56 57export interface Visitor { 58 enter(path: string): void; 59 exit(path: string): { fileCoverage: FileCoverage; sourceMappingURL: string }; 60} 61 62export interface VisitorOptions { 63 coverageVariable: string; 64 inputSourceMap: RawSourceMap; 65} 66 67export function programVisitor( 68 types: typeof babelTypes, 69 sourceFilePath?: string, 70 opts?: Partial<VisitorOptions>, 71): Visitor; 72
These definitions were written by Jason Cheatham.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 25/29 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More