# hjson を Homebrew, Nix, scoop でインストール

hjson のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:hjson
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install hjson
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hjson
```

  証拠: nixpkgs package indexes: hjson from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- Scoop (92%):

```sh
scoop install main/hjson
```

  証拠: Scoop official bucket manifest trees: bucket/hjson.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:hjson
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/hjson>
- **バージョン:** 4.6.0
- **ソース概要:** Convert JSON to HJSON and vice versa
- **ホームページ:** <https://hjson.github.io/>
- **リポジトリ:** <https://github.com/hjson/hjson-go>
- **上流ドキュメント:** <https://hjson.github.io/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/hjson/hjson-go/archive/refs/tags/v4.6.0.tar.gz>
- **最終更新:** 2026-07-27T14:32:25+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- hjson (cli)
- hjson (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.6.0
- マネージャ更新日: 2026-07-27
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/hjson/hjson-go
- 検出された最新: v4.6.0 (最新)
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://api.github.com/repos/hjson/hjson>
- <https://api.github.com/repos/hjson/hjson-go>
- <https://hjson.github.io/>
- <https://hjson.github.io/download.html>
- <https://hjson.github.io/rfc.html>
- <https://raw.githubusercontent.com/hjson/hjson-go/master/README.md>
- input: source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hjson
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - hjson: normalized package name match | nixpkgs package indexes: hjson from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Scoop - main/hjson: normalized package name match | Scoop official bucket manifest trees: bucket/hjson.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [json5](https://pkg.so/ja/brew/json5/) - Shares pkgdb curated category or tags: cli, configuration, data-format, developer-tools, json.
- [jsonnet](https://pkg.so/ja/brew/jsonnet/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools, json.
- [go-jsonnet](https://pkg.so/ja/brew/go-jsonnet/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools, json.
- [dyff](https://pkg.so/ja/brew/dyff/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools, json.
- [config-file-validator](https://pkg.so/ja/brew/config-file-validator/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools, json.
- [dhall-json](https://pkg.so/ja/brew/dhall-json/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools, json.
- [xmq](https://pkg.so/ja/brew/xmq/) - Shares pkgdb curated category or tags: cli, data-format, developer-tools, json.
- [jrsonnet](https://pkg.so/ja/brew/jrsonnet/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools, json.
- [hjson](https://pkg.so/ja/npm/hjson/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, data, hjson, json.
- [json2hcl](https://pkg.so/ja/brew/json2hcl/) - Both packages work with overlapping file formats or content types. Shared terms: cli, configuration, convert, developer, developer-tools.
- [hjson](https://pkg.so/ja/npm/hjson/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/hjson.yml](https://github.com/mxcl/pkgdb/blob/main/combined/hjson.yml)


## ソース

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