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

@bluelovers/fs-json

Latest version: v1.0.18

Overview

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

Scan summary

@bluelovers/fs-json was last scanned on 27 Nov 2026 at version 1.0.18. 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 1.0.18.
  • Downloads: 1,802 downloads.

Versions

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

No rules fired in 1.0.18

Findings

Findings for v1.0.18. 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 1.0.18; other versions have their own rules, not their own score.

README

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

@bluelovers/fs-json

Enhanced JSON file operations with final EOL (End of Line) support. 增強型 JSON 檔案操作,支援結尾換行符號(EOL)。

Features / 功能

  • Read and write JSON files / 讀寫 JSON 檔案
  • Output JSON with auto directory creation / 輸出 JSON 並自動創建目錄
  • Stringify JSON with final EOL option / 字串化 JSON 並支援結尾換行選項
  • Parse JSON from string or Uint8Array / 從字串或 Uint8Array 解析 JSON
  • Based on fs-extra and jsonfile / 基於 fs-extra 和 jsonfile

Install / 安裝

yarn add @bluelovers/fs-json
yarn-tool add @bluelovers/fs-json
yt add @bluelovers/fs-json
pnpm add @bluelovers/fs-json
npm install @bluelovers/fs-json

Quick Start / 快速開始

import {
  readJSON,
  readJSONSync,
  writeJSON,
  writeJSONSync,
  outputJSON,
  outputJSONSync,
  stringifyJSON,
  parseJSON
} from '@bluelovers/fs-json';

// Read JSON / 讀取 JSON
const data = await readJSON('config.json');
const dataSync = readJSONSync('config.json');

// Write JSON / 寫入 JSON
await writeJSON('output.json', { key: 'value' });
writeJSONSync('output.json', { key: 'value' });

// Output JSON (creates directory if needed) / 輸出 JSON(必要時創建目錄)
await outputJSON('path/to/file.json', { key: 'value' });
outputJSONSync('path/to/file.json', { key: 'value' });

// Stringify with final EOL / 字串化並添加結尾換行
const jsonString = stringifyJSON({ key: 'value' });
console.log(jsonString); // '{"key":"value"}\n'

// Parse JSON / 解析 JSON
const obj = parseJSON('{"key":"value"}');
const objFromUint8 = parseJSON(new Uint8Array([123, 34, 107, 101, 121, 34, 58, 34, 118, 97, 108, 117, 101, 34, 125]));

API

readJSON(file, options?) / readJSONSync(file, options?)

Reads a JSON file asynchronously or synchronously. 異步或同步讀取 JSON 檔案。

writeJSON(file, data, options?) / writeJSONSync(file, data, options?)

Writes a JSON file asynchronously or synchronously. 異步或同步寫入 JSON 檔案。

outputJSON(file, data, options?) / outputJSONSync(file, data, options?)

Writes a JSON file, creating the directory if it doesn't exist. 寫入 JSON 檔案,如果目錄不存在則自動創建。

stringifyJSON(data, options?)

Stringifies data to JSON with final EOL support. 將資料字串化為 JSON,支援結尾換行。

parseJSON(stringOrUint8Array, reviver?)

Parses JSON from string or Uint8Array. 從字串或 Uint8Array 解析 JSON。

Options / 選項
interface IWriteOptions {
  finalEOL?: boolean;  // Add final newline (default: true) / 添加結尾換行(預設:true)
  spaces?: string | number;  // Indentation / 縮排
  // ... other fs-extra/jsonfile options
}

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 @bluelovers/fs-json

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229