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
Click to show internal directories.
Click to hide internal directories.