/ednq

Transform data with Clojure from the command line

Primary LanguageClojureMIT LicenseMIT

ednq

Transform json or edn data with Clojure from the command line!

ednq is a babashka script that allows you to process data with arbitrary Clojure code. Simply pass in a function and some valid data!

Usage

Usage: ednq <fn> <data> <options>

Options:
-i, --in=TYPE   set the input data type
-o, --out=TYPE  set the output data type

TYPE can be: json(default), edn

Examples

$ ./ednq.clj ':hello' "{\"hello\": \"world\"}"
"world"
$ ./ednq.clj 'keys' "{\"foo\": \"boz\", \"bar\": \"baz\"}" -i json -o edn
(:foo :bar)