Gathering detailed insights and metrics for @tanker/file-reader
Gathering detailed insights and metrics for @tanker/file-reader
Gathering detailed insights and metrics for @tanker/file-reader
Gathering detailed insights and metrics for @tanker/file-reader
Tanker client-side encryption SDK for JavaScript
npm install @tanker/file-reader
Typescript
Module System
Node Version
NPM Version
TypeScript (98.22%)
JavaScript (1.1%)
Python (0.67%)
Shell (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
800 Stars
2,746 Commits
26 Forks
11 Watchers
4 Branches
14 Contributors
Updated on Jun 29, 2025
Latest Version
4.3.0
Package Id
@tanker/file-reader@4.3.0
Unpacked Size
21.79 kB
Size
4.07 kB
File Count
19
NPM Version
10.2.4
Node Version
18.18.0
Published on
Jan 06, 2025
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
2
1
A promisified FileReader
implementation very similar to the browser's FileReader API, with a few differences:
readAs...
methods don't take a Blob or File instance as first argument anymore;readAs...
methods return a Promise that can be awaited;1import { FileReader } from '@tanker/file-reader'; 2 3// Retrieve a file or blob somehow 4const file = new File( 5 ['The quick brown fox jumps over the lazy dog'], 6 'fox.txt', 7 { type: 'plain/text' } 8); 9 10// Create your file reader 11const reader = new FileReader(file); 12 13// Read the whole file 14const text = await reader.readAsText('UTF-8'); 15const dataUrl = await reader.readAsDataURL(); 16const arrayBuffer = await reader.readAsArrayBuffer(); 17 18// Or read binary chunks (ArrayBuffer) 19const chunkSize = 8; // bytes 20let chunk; 21do { 22 chunk = await reader.readAsArrayBuffer(chunkSize); 23 // do something with the chunk 24} while (chunk.byteLength > 0);
This package is a dependency of the Tanker client SDKs for end-to-end encryption:
Read the documentation to get started.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
13 existing vulnerabilities detected
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