Skip to content

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

License

Notifications You must be signed in to change notification settings

RyoNakagami/yamlcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages