← 返回
开发者工具 中文

Yamlcheck

Validate YAML syntax using python3, lint configs, and convert YAML to JSON. Use when checking syntax, finding errors, or converting formats.
使用 python3 验证 YAML 语法、lint 配置并转为 JSON。适用于检查语法、找出错误或转换格式。
bytesagain1
开发者工具 clawhub v3.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 646
下载
💾 10
安装
2
版本
#latest

概述

YAMLCheck

A real YAML validator and toolkit. Check syntax, convert YAML to JSON, lint for style issues, and list top-level keys. Uses PyYAML when available, falls back to basic parsing when not.

Commands

CommandDescription
----------------------
yamlcheck validate Validate YAML syntax — reports document count, types, key counts, file size. Falls back to basic tab/colon checks without PyYAML
yamlcheck to-json Convert YAML to formatted JSON output. Handles multi-document YAML files
yamlcheck lint Check for common style issues: tabs, trailing whitespace, Windows line endings, odd indentation, missing spaces after colons, long lines
yamlcheck keys List top-level keys with types and value previews

Requirements

  • python3 (required)
  • PyYAML (optional — enables full parsing; install with pip3 install pyyaml)

Without PyYAML, the tool still works but uses basic regex-based checks instead of full YAML parsing.

Examples

# Validate a docker-compose file
yamlcheck validate docker-compose.yml

# Convert YAML config to JSON
yamlcheck to-json values.yaml

# Check for style issues
yamlcheck lint playbook.yml

# See what keys are defined
yamlcheck keys config.yaml

版本历史

共 2 个版本

  • v3.0.2 当前
    2026-03-29 17:53 安全 安全
  • v1.0.6
    2026-03-19 06:04

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,937
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,967

Cad

bytesagain1
CAD参考工具
★ 0 📥 2,725