Skip to content
/ ednq Public

Transform data with Clojure from the command line

License

Notifications You must be signed in to change notification settings

kwpav/ednq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

Transform data with Clojure from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published