Gathering detailed insights and metrics for @types/react-file-reader-input
Gathering detailed insights and metrics for @types/react-file-reader-input
Gathering detailed insights and metrics for @types/react-file-reader-input
Gathering detailed insights and metrics for @types/react-file-reader-input
The repository for high quality TypeScript type definitions.
npm install @types/react-file-reader-input
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,054 Stars
89,754 Commits
30,431 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 17, 2025
Latest Version
2.0.4
Package Id
@types/react-file-reader-input@2.0.4
Unpacked Size
5.80 kB
Size
2.16 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/react-file-reader-input
This package contains type definitions for react-file-reader-input (https://github.com/ngokevin/react-file-reader-input).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-file-reader-input.
1import * as React from "react"; 2 3declare class FileInput extends React.Component<FileInput.Props> { 4} 5 6declare namespace FileInput { 7 type Format = "buffer" | "binary" | "url" | "text"; 8 type Result = [ProgressEvent, File]; 9 10 interface Props extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> { 11 /** 12 * what format the `FileReader` should read the file as 13 * (i.e., `'buffer'`, `'binary'`, `'url'`, `'text'`). 14 * 15 * Defaults to `'url'`. 16 */ 17 as?: Format | undefined; 18 19 /** 20 * Callback function called when the files are chosen by the user. 21 * 22 * Results will be an array of arrays, the size of which depending 23 * on how many files were selected. 24 * 25 * Each result will be an array of two items: 26 * 27 * `progressEvent`: `result[0]` is a `ProgressEvent` object. 28 * You can retrieve the raw results at `progressEvent.target.result` 29 * among other things. 30 * 31 * `file`: `result[1]` is a `File` object. You can retrieve the file name 32 * at file.name among other things. 33 * 34 * @param event The event that triggered file changes 35 * @param results The array of files 36 */ 37 onChange(event: React.ChangeEvent<HTMLInputElement>, results: Result[]): void; 38 } 39} 40 41export = FileInput; 42
These definitions were written by Dmitry Rogozhny, Ali Taheri, and bjoluc.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
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-07-14
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