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

@weapp-vite/oxfmt

Latest version: v0.1.9-dev.20261128.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: icebreaker
528 Stars
33 Forks
36 Versions
6.2K Downloads
TypeScript Repo language

Scan summary

@weapp-vite/oxfmt was last scanned on 28 Nov 2026 at version 0.1.9-dev.20261128.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 36 versions; the latest 5 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 0.1.9-dev.20261128.1.
  • Downloads: 6,173 downloads.

Versions

36 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.9-dev.20261128.1 LATEST 28 Nov 2026 No rules fired
0.1.9-dev.20261127.1 27 Nov 2026 No rules fired
0.1.8 25 Nov 2026 No rules fired
0.1.8-dev.20261124.1 24 Nov 2026 Not shown
0.1.7 23 Nov 2026 Not shown

No rules fired in 0.1.9-dev.20261128.1

Findings

Findings for v0.1.9-dev.20261128.1. 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 0.1.9-dev.20261128.1; other versions have their own rules, not their own score.

README

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

@weapp-vite/oxfmt

小程序共享格式预设与安全格式化入口。配套 Vite+ 1.2.0 / Oxfmt 0.73.0,CLI 与 VSCode 共用 @weapp-vite/language-service。

import { recommended } from '@weapp-vite/oxfmt'
import { defineConfig } from 'vite-plus'

export default defineConfig({
  fmt: recommended,
})

默认两空格、单引号、无分号、LF、末尾换行和多行尾逗号。不排序 import、package.json 字段或 Tailwind class。

项目命令

pnpm exec weapp-vite-format --write
pnpm exec weapp-vite-format --check
pnpm exec weapp-vite-format --check-all
命令 处理范围
--write 在内存完成全部候选文件的格式与语义预检,通过后写入
--check 使用相同格式入口只读检查,任何文件需要格式化时失败
--check-all 一次 vp check、原生语言预检与格式检查,以及项目存在的 lint:vue、stylelint 脚本

标准文件使用项目安装的 Oxfmt API,原生模板、脚本模块和样式进入对应适配器。--check-all 不替代项目独立的 TypeScript 类型检查。原生语言诊断也可通过 weapp-vite-lint --native-only 单独执行。

语言范围与语义保护

文件 处理方式
.wxml、.axml、.ttml、.swan、.jxml、.qml、.ksml、.xhsml、.tyml 共享 TS scanner 与源码片段编辑,仅调整标签和属性布局
.wxss、.acss、.ttss、.qss、.jxss、.tyss 和原生 .css CSS 格式化,保留 rpx、Tailwind 指令、条件注释和声明顺序;Stylelint 负责样式语义
独立/内联 WXS、SJS、KS、filter 平台方言预检、词法兼容处理、Oxfmt、格式化后 AST 与方言复验
.wxs.ts、.sjs.ts、.ks.ts、.filter.ts 及 lang="ts/js" 按待编译源码处理,不把合法源码提前限制为宿主原生语法

模板逐字保留文本空白、实体、插值、属性值及引号、属性顺序、重复属性和显式闭合形式,不经过 DOM 序列化。内联脚本由模块适配器独立处理;formatWxml 兼容 API 仍保持内联脚本原文。

脚本模块按实际平台检查模块系统和内建能力,不把所有 .sjs 解释成微信 WXS。百度原生 filter 使用相对 .filter.js 引用并通过默认导出暴露函数。方言、词法、结构或 AST 语义校验失败时拒绝写回;文件在预检期间被修改时拒绝覆盖。

预设排除依赖、构建产物、.weapp-vite、受管生成目录与锁文件。供标准 vp fmt 跳过原生模板和模块的忽略项由组合 CLI 接管,不会因此跳过普通源码。不要把原生模板重新关联为 HTML;单独的 vp fmt 不包含完整原生语言检查。

配置与 workspace

lint / fmt 继续位于 vite.config.ts。平台选择放在 weapp.language,支持 platform 与 overrides: [{ files: string[], platform }];配置影响 CLI 和 VSCode。存在歧义或互相冲突的模块引用时给出诊断,需显式配置归属。

--write / --check 使用最近的项目配置,也可通过 --config 指定 Vite 配置或 .oxfmtrc.json。格式遵循实际 fmt、文件 overrides、忽略路径和 .gitignore;不通过忽略普通源码消除格式失败。

pnpm exec weapp-vite-format --write src/pages
pnpm exec weapp-vite-format --check -c .oxfmtrc.json 'src/**/*.wxml'

--check-all 与 vp check 优先使用 workspace 根配置,不接受 --config;成员预设不覆盖父工作区的 lint / fmt 所有权。根配置的 glob 和忽略路径需相对根目录定位到成员项目。

程序接口与编辑器

import { formatDocument } from '@weapp-vite/oxfmt/languages'
import { formatWxml } from '@weapp-vite/oxfmt/wxml'

const template = await formatDocument(source, 'src/page.axml')
const compatible = await formatWxml(source, 'src/page.wxml', { printWidth: 100 })

formatDocument 支持全部登记语言与内联模块。@weapp-vite/oxfmt/project 导出项目配置解析、文档归属解析和 prepareProjectFormatting,供 CLI 与编辑器适配层复用。显式传入格式选项时采用该配置;需要固定风格时提供完整所需选项。

VSCode 扩展使用项目安装的工具,仅在受信任工作区加载项目配置与格式化器。模板及原生模块使用扩展的唯一格式化提供者,标准 JS/TS 使用 Oxc;错误输入显示诊断并返回零修改。此包不新增完整模板类型检查器,不替代 Vue 专项 ESLint、Stylelint 或平台编译器。本轮验收覆盖 TS、CLI、VSCode 和构建,不代表真实小程序 IDE runtime 验收。

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 @weapp-vite/oxfmt

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

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?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229