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
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
42,166,970
Last Day
9,737
Last Week
126,418
Last Month
553,880
Last Year
5,682,179
NOASSERTION License
50,001 Stars
89,699 Commits
30,430 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 06, 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
-6%
9,737
Compared to previous day
Last Week
-9.7%
126,418
Compared to previous week
Last Month
1.8%
553,880
Compared to previous month
Last Year
5.1%
5,682,179
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
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