pkg.soopen package index

brew / 排名 8677

使用 Homebrew, Nix, scoop 安装 hjson

查看 hjson 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hjson

local Homebrew formula metadata

Windows

Scoop已验证 · 92%
scoop install main/hjson

Scoop official bucket manifest trees · bucket/hjson.json · 来源: api.github.com

概览

软件包摘要

Convert JSON to HJSON and vice versa

命令和别名

  • hjson

历史

项目历史与用法

Hjson is a human-editable configuration format and related CLI/library ecosystem that keeps JSON compatibility while relaxing syntax for comments, unquoted keys, optional commas, root-brace omission, and multiline strings.

项目历史

The Hjson site presents the format as a user interface for JSON rather than a replacement for JSON. The stated goal is to make data easier for humans to read and edit before converting it back to ordinary JSON for machines.

The Hjson Internet-Draft dated May 23, 2016 formalized the format as Human JSON, a configuration file format based on JSON whose design goals were readability, editability, backward compatibility with JSON, and suitability for human-viewed configuration, resource files, and debug data dumps.

The Homebrew package points at hjson-go, the Go implementation. Its README says the Go implementation is based on hjson-js, documents both library and hjson-cli use, and positions the CLI as a converter between JSON and Hjson.

采用历史

Hjson adoption has been implementation-led rather than standards-body-led. The official developer page lists implementations for JavaScript, C#, C++, Go, Java, Lua, PHP, Python, Rust, Ruby, and other partial ports, plus tools with native support.

The input package facts show the Go CLI packaged by Homebrew, Nix, and Scoop. That is a modest but useful packaging footprint for developers who want a command-line converter without adopting a language-specific library.

使用方式

The hjson-go CLI reads JSON or Hjson from a file or stdin and emits JSON, formatted JSON, or Hjson. Typical package use is converting existing JSON into a friendlier editable form, validating Hjson, or embedding Hjson parsing into Go programs.

The format is intentionally scoped. The Internet-Draft recommends it for data primarily viewed or edited by humans and advises against protocol use.

为什么软件包爱好者会关心

Hjson sits in the long-running package-nerd debate over configuration formats: strict JSON is universal but hostile to comments and hand editing; YAML is powerful but complex; Hjson offers a smaller relaxed-JSON compromise.

The Go CLI matters because it turns the format into a portable command-line filter, making Hjson useful in shell scripts, editors, config migrations, and package-manager installs without committing to a JavaScript runtime.

时间线

  • 2014: The hjson/hjson repository was created for the format project.
  • 2016-05-23: The Hjson Internet-Draft was dated May 23, 2016.
  • 2016-08-05: The hjson-go repository was created.
  • 2016-08-08: hjson-go v0.1.0 was published on GitHub releases.

Related projects

  • hjson-js: the JavaScript implementation that hjson-go names as its base.
  • JSON: the strict data format that Hjson extends for human-editable configuration.
  • YAML, TOML, JSON5: adjacent human-editable configuration formats often considered for similar use cases.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hjson可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本4.6.0
管理器更新时间2026-07-27
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:hjson
版本4.6.0
软件包管理器Homebrew
主页https://hjson.github.io/
仓库https://github.com/hjson/hjson-go
最后更新2026-07-27T14:32:25+02:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

hjson

nix profile install nixpkgs#hjson
  • normalized package name match
  • 匹配方式:Hjson
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: hjson from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Scoop95%

main/hjson

scoop install main/hjson
  • normalized package name match
  • 匹配方式:Hjson
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/hjson.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation