Command line utility to convert YAML to HOCON
- Read from stdin, write to stdout: just
x2h
- Convert a file to stdout:
cat my-file.yaml | x2h
- Convert using input file and output file
x2h -i in-file.yaml -o out-file.conf
Options:
-i, --input=<path> Optional input file containing yaml. If omitted, stdin
is used.
-o, --output=<path> Optional output file. If omitted, stdout is used.
-h, --help Show this message and exit
You can find the current release under releases.
The binaries are compressed with upx and not signed in any way. Your OS will probably prevent you from running them.
JDK 21 is required to build this.
# Create a runnable .jar file @ build/libs/x2h.jar
./gradlew build
You can use graalvm to create a native binary
native-image --no-fallback -jar build/libs/x2h.jar
Since the generated binary is fairly large, you might want to compress it
upx --best x2h
Licensed under the EUPL. See LICENSE file.