Skip to content
RyoNakagamiPublic

About

A command-line tool to convert between YAML and JSON formats.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

yamlcli

A command-line tool to convert between YAML and JSON formats.

Features

  • Convert YAML files to JSON format
  • Convert JSON files to YAML format
  • Customizable JSON indentation
  • Error handling for invalid files and formats

Usage

# Convert YAML to JSON (default 2-space indent)
yamlcli input.yaml --to-json

# Convert YAML to JSON with custom indentation
yamlcli input.yaml --to-json --indent 4

# Convert JSON to YAML
yamlcli input.json --to-yaml

Install via uv tool

uv tool install git+https://github.com/RyoNakagami/yamlcli.git

Uninstall

uv tool uninstall yamlcli

Development

Running Tests

Tests are written using pytest. To run the tests:

uv run pytest

About

A command-line tool to convert between YAML and JSON formats.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages