jet

CLI to transform between JSON, EDN, YAML and Transit using Clojure

EPL-1.0 License

Downloads
1.8K
Stars
683
Committers
26

Bot releases are hidden (Show)

jet - v0.7.27 Latest Release

Published by borkdude about 1 year ago

jet - v0.6.26

Published by borkdude over 1 year ago

jet - v0.5.25

Published by borkdude over 1 year ago

jet - v0.4.24

Published by borkdude over 1 year ago

jet - v0.4.23

Published by borkdude over 1 year ago

jet - v0.3.21

Published by borkdude almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/borkdude/jet/compare/v0.2.18...v0.3.21

jet - v0.2.18

Published by borkdude over 2 years ago

jet - v0.1.1

Published by borkdude over 2 years ago

jet - v0.1.0

Published by borkdude almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/borkdude/jet/compare/v0.0.15...v0.1.0

jet -

Published by borkdude over 3 years ago

See CHANGELOG.md.

jet -

Published by borkdude over 3 years ago

  • add short options: -i (input) for --from, -o (output) for --to
  • add --func / -f option for executing function over input
  • use {:default tagged-literal} as default data reader options when none is provided
  • Upgrade GraalVM to 21.0.0
  • Upgrade sci to 0.2.4
jet -

Published by borkdude about 4 years ago

  • Display help if no args are passed, #64 by @kolharsam
  • Add symbol. This can be useful when a query returns a string but you want to print it without quotes.
jet -

Published by borkdude over 4 years ago

jet -

Published by borkdude over 4 years ago

  • Upgrade dependencies (transit-clj, fipp, sci)
  • Windows build
jet -

Published by borkdude about 5 years ago

New:

  • #10, #39: --keywordize now takes an optional function argument which will be used to transform keys from JSON. Example:
$ echo '{"my key": 1}' | jet --from json --keywordize '#(keyword (str/replace % " " "_"))' --to edn
{:my_key 1}
  • The --interactive command now takes an optional first command from the command line. Thanks @reedho for co-operating on this. See the README for more info.
jet -

Published by borkdude about 5 years ago

New

  • #37: implement --collect. See README.
jet -

Published by borkdude about 5 years ago

New

#32: support streaming. This makes working with files produced by cat more convenient, as you don't have to read in entire files before you can process them. This is called "cat-friendly".

See: https://github.com/borkdude/jet#streaming

jet -

Published by borkdude about 5 years ago

New

  • Jet now ships with an interactive shell to explore data using jet-lang. Start it with jet --interactive. Using rlwrap is recommended.

Rationale of jet-lang: a minimal language for transformation of input, before writing out to JSON, EDN, or Transit.

Rationale of the shell: learn and work out the correctness of a jet-lang query. It can also be useful on servers where you want to inspect data, but don't have REPL.

Screenshot 2019-08-07 21 35 47

  • Several additions and improvements to jet-lang. See the docs.
jet -

Published by borkdude about 5 years ago

Many changes to the query language. Remove magic set and map notation in favour of familiar Clojure-style programming constructs. See the query docs.

jet -

Published by borkdude about 5 years ago

  • Change in the query language: selection is now separated from nesting.

To select a limited set of keys, use: #{:a :b :c} as part of your query.
See the query docs. Thanks to Reut for the suggestions.

Screenshot 2019-08-04 23 57 30