Skip to content

Instantly share code, notes, and snippets.

@lagenorhynque
Created July 12, 2018 13:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lagenorhynque/f06849ed9226c2123fb3d6d8cf72bc05 to your computer and use it in GitHub Desktop.
Save lagenorhynque/f06849ed9226c2123fb3d6d8cf72bc05 to your computer and use it in GitHub Desktop.
EDN to YAML conversion
{:deps
{io.forward/yaml {:mvn/version "1.0.9"}}}
(ns edn2yaml
(:require [yaml.core :as yaml]))
(defn -main [& args]
(-> (clojure.edn/read)
(yaml/generate-string
:dumper-options {:flow-style :block})
println))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment