Gathering detailed insights and metrics for @types/through2
Gathering detailed insights and metrics for @types/through2
Gathering detailed insights and metrics for @types/through2
Gathering detailed insights and metrics for @types/through2
The repository for high quality TypeScript type definitions.
npm install @types/through2
Typescript
Module System
99.8
Supply Chain
83.6
Quality
76
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
49,710 Stars
89,364 Commits
30,382 Forks
640 Watchers
6 Branches
9,955 Contributors
Updated on May 11, 2025
Latest Version
2.0.41
Package Id
@types/through2@2.0.41
Unpacked Size
5.99 kB
Size
2.05 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install --save @types/through2
This package contains type definitions for through2 (https://github.com/rvagg/through2).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/through2.
1/// <reference types="node" /> 2 3import stream = require("stream"); 4 5declare function through2(transform?: through2.TransformFunction, flush?: through2.FlushCallback): stream.Transform; 6declare function through2( 7 opts?: stream.DuplexOptions, 8 transform?: through2.TransformFunction, 9 flush?: through2.FlushCallback, 10): stream.Transform; 11 12declare namespace through2 { 13 interface Through2Constructor extends stream.Transform { 14 new(opts?: stream.DuplexOptions): stream.Transform; 15 (opts?: stream.DuplexOptions): stream.Transform; 16 } 17 18 type TransformCallback = (err?: any, data?: any) => void; 19 type TransformFunction = ( 20 this: stream.Transform, 21 chunk: any, 22 enc: BufferEncoding, 23 callback: TransformCallback, 24 ) => void; 25 type FlushCallback = (this: stream.Transform, flushCallback: () => void) => void; 26 27 /** 28 * Convenvience method for creating object streams 29 */ 30 function obj(transform?: TransformFunction, flush?: FlushCallback): stream.Transform; 31 32 /** 33 * Creates a constructor for a custom Transform. This is useful when you 34 * want to use the same transform logic in multiple instances. 35 */ 36 function ctor(transform?: TransformFunction, flush?: FlushCallback): Through2Constructor; 37 function ctor( 38 opts?: stream.DuplexOptions, 39 transform?: TransformFunction, 40 flush?: FlushCallback, 41 ): Through2Constructor; 42} 43 44export = through2; 45
These definitions were written by Bart van der Schoor, Georgios Valotasios, TeamworkGuy2, and Alorel.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 0 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
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-05-05
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