tojson

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

tojson converts YAML/TOML/JSON variants and front matter from a file or stdin to JSON on stdout.

Usage:

tojson file.yaml          # format inferred from extension
tojson file.md            # front matter extracted, meta JSON printed
cat file.yaml | tojson -f yaml
tojson -pretty file.yaml  # pretty-printed JSON
tojson -compact file.yaml # explicit compact JSON
tojson -raw file.yaml     # raw output from conversion, no post-processing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL