rewrite-clj is a library that lets you manipulate Clojure code and EDN trees in a format- and whitespace-preserving manner.