macOS
brew install json5local Homebrew formula metadata
安装
brew install json5local Homebrew formula metadata
概览
JSON enhanced with usability features
历史
JSON5 is both a data-format proposal and a JavaScript reference implementation for a more hand-editable superset of JSON. The format adds familiar ECMAScript 5.1 syntax such as comments, trailing commas, single-quoted strings, unquoted object keys, and additional number forms.
The JSON5 GitHub repository and npm package both date to May 2012. The official site describes JSON5 as `JSON for Humans`, positioning it for configuration and other hand-authored files rather than machine-to-machine interchange.
In March 2018, the JSON5 specification was published as Standard JSON5 1.0.0. The spec frames JSON5 as a superset of JSON that expands syntax with selected ECMAScript 5.1 productions while keeping JSON's data model.
The official site reported in 2022 that JSON5 received more than 65 million npm downloads per week, ranked in the top 0.1 percent of depended-upon npm packages, and had been adopted by projects including Chromium, Next.js, Babel, Retool, WebStorm, and Apple platforms.
Its wide adoption came less from command-line use than from dependency graphs: parsers, build tools, configuration loaders, and editors pulled JSON5 in as a friendlier format for files people edit by hand.
The JavaScript package exposes an API compatible with the standard JSON API, including `JSON5.parse()` and `JSON5.stringify()`, and the Homebrew formula provides the `json5` CLI. Typical usage is parsing configuration-like input that wants comments and trailing commas while preserving JSON-like data structures.
JSON5 is package-nerd significant because it became one of the few JSON-adjacent formats that escaped niche status. It is a reminder that tiny syntax conveniences in configuration files can create enormous dependency footprints once build systems and editors standardize around them.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
json5 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/json5/json5
安装元数据
| 软件包键 | brew:json5 |
|---|---|
| 版本 | 2.2.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/json5 |
| 主页 | https://json5.org/ |
| 仓库 | https://github.com/json5/json5 |
| 上游文档 | https://json5.org/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/json5/json5/archive/refs/tags/v2.2.3.tar.gz |
| 依赖 | node |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | json5 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.