
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@nishin/node-file-reader
Advanced tools
Read various data types from a Node.JS file handle in a streamlined way
Read various data types from a file handle in a streamlined way
The NodeFileReader class implements file handle access on top of the AsyncReader class and is suitable to read very large files as the file is only partially loaded into memory while traversing it. The API layer is almost identical to the BinaryReader class, only that most methods return promises instead.
For details on supported data types consult the @nishin/reader readme.
import fs from 'node:fs/promises';
import { NodeFileReader, DataType } from '@nishin/node-file-reader';
const reader = new NodeFileReader(await fs.open('/path/to/large/file'), ByteOrder.BigEndian, { bufferSize: 8192 });
const data = await reader.next(DataType.Uint8);
await reader.close();
FAQs
Read various data types from a Node.JS file handle in a streamlined way
We found that @nishin/node-file-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.