commit 00111d6ff01fac21b97fb6a4cc1f51a3d999ce9f Author: Rune Juhl (Atea) Date: Tue Oct 25 20:37:00 2022 +0200 JSON to YAML converter diff --git a/bb.edn b/bb.edn new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/bb.edn @@ -0,0 +1 @@ +{} diff --git a/jaml.clj b/jaml.clj new file mode 100755 index 0000000..6410aa7 --- /dev/null +++ b/jaml.clj @@ -0,0 +1,10 @@ +#!/usr/bin/env bb +(ns yaml + (:require [cheshire.core :as json] + [clj-yaml.core :as yaml] + [clojure.java.io])) + +(print (yaml/generate-string + (json/parse-stream (clojure.java.io/reader + (first *command-line-args*))) + :dumper-options {:flow-style :block}))