Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

fs-stream-sync

Latest version: v2.0.23

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: bluelovers
2 Stars
0 Forks
1 Versions
3.0K Downloads
TypeScript Repo language

Scan summary

fs-stream-sync was last scanned on 27 Nov 2026 at version 2.0.23. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 2.0.23.
  • Downloads: 3,004 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.23 LATEST 27 Nov 2026 No rules fired

No rules fired in 2.0.23

Findings

Findings for v2.0.23. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.0.23; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

fs-stream-sync - 檔案系統流處理工具

這個模組提供了檔案系統的同步和異步流處理功能,包括讀取和寫入流。

主要功能

  • 同步和異步流處理
  • 讀取和寫入流
  • 完全相容於 Node.js 核心流
  • 支援同步寫入流
  • 跨平台相容性

安裝 (Installation)

# 使用 yarn / Using yarn
yarn add fs-stream-sync

# 使用 yarn-tool / Using yarn-tool
yarn-tool add fs-stream-sync
# yt 是 yarn-tool 的別名 / yt is an alias for yarn-tool
yt add fs-stream-sync

# 使用 pnpm / Using pnpm
pnpm add fs-stream-sync

# 使用 npm / Using npm
npm install fs-stream-sync

已知問題

  • 與 ReadStream/WriteStream 不完全相同
  • 某些事件觸發不如預期
  • 某些 API 仍為異步
  • SyncWriteStream.write 無法追加

歡迎發送 PR,使這個模組更接近原始的 fs.stream

Known Issues (已知問題)

  • not 100% same as ReadStream/WriteStream
  • some event not trigger as expect
  • some api still async
  • SyncWriteStream.write can't append

wellcome send pr, make this near original fs.stream

usage

import {
    ReadStream, WriteStream,
    SyncReadStream, SyncWriteStream,

    createReadStream, createWriteStream,
    createSyncReadStream, createSyncWriteStream
} from 'fs-stream-sync';
import * as fs from "fs-extra";
import * as FsStream from "fs-stream-sync";

fs.ensureDirSync('./temp')
fs.removeSync('./temp/temp1.txt')

let file = './temp/temp1.txt'

let s = FsStream.createSyncWriteStream(file, {
    flags: 'w+',
});

[
    'open',
    'ready',
    'close',
    'finish',
].forEach(function (name)
{
    s.on(name, function (...argv)
    {
        console.log(name, argv);
    })
})

s.open()

let text = ''

let line = `test${0}\n`

s.write(line)

text += line

s.on('close', function (...argv)
{
    let buf = fs.readFileSync(file)

    console.log('close2', argv, buf.toString() === text);
})

s.destroy()

let buf = fs.readFileSync(file)

console.log(buf.toString() === text);
open [ 4 ]
ready []
close []
close2 [] true
true

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm fs-stream-sync

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229