All Projects → oscaro → eq

oscaro / eq

Licence: EPL-1.0 License
jq, but for EDN.

Programming Languages

clojure
4091 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to eq

Fipp
Fast Idiomatic Pretty Printer for Clojure
Stars: ✭ 454 (+1873.91%)
Mutual labels:  pretty-print, edn
edamame
Configurable EDN/Clojure parser with location metadata
Stars: ✭ 129 (+460.87%)
Mutual labels:  edn
Webpack Messages
Beautifully format Webpack messages throughout your bundle lifecycle(s)!
Stars: ✭ 238 (+934.78%)
Mutual labels:  pretty-print
tv
📺(tv) Tidy Viewer is a cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment.
Stars: ✭ 1,763 (+7565.22%)
Mutual labels:  pretty-print
Eden
edn (extensible data notation) encoder/decoder for Elixir
Stars: ✭ 32 (+39.13%)
Mutual labels:  edn
jsonpp-rs
UNIX style tool to pretty print json
Stars: ✭ 26 (+13.04%)
Mutual labels:  pretty-print
Pretty Simple
pretty-printer for Haskell data types that have a Show instance
Stars: ✭ 183 (+695.65%)
Mutual labels:  pretty-print
prism-pretty
A Chrome Extension to format/highlight/preview HTML/JS/CSS/Markdown code with Prism.js
Stars: ✭ 91 (+295.65%)
Mutual labels:  pretty-print
cq
Clojure Command-line Data Processor for JSON, YAML, EDN, XML and more
Stars: ✭ 111 (+382.61%)
Mutual labels:  edn
rewrite-edn
Utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments.
Stars: ✭ 65 (+182.61%)
Mutual labels:  edn
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (+34.78%)
Mutual labels:  pretty-print
clj-rn
A utility for building ClojureScript-based React Native apps
Stars: ✭ 56 (+143.48%)
Mutual labels:  edn
lines
A pure bash clojureish CI pipeline
Stars: ✭ 72 (+213.04%)
Mutual labels:  edn
tabled
An easy to use library for pretty print tables of Rust structs and enums.
Stars: ✭ 1,337 (+5713.04%)
Mutual labels:  pretty-print
jsonlint
JSON/CJSON/JSON5 parser, syntax & schema validator and pretty-printer with a command-line client, written in pure JavaScript.
Stars: ✭ 21 (-8.7%)
Mutual labels:  pretty-print
Doctorpretty
Wadler's "A prettier printer" embedded pretty-printer DSL for Swift
Stars: ✭ 186 (+708.7%)
Mutual labels:  pretty-print
protean
Evolve your RESTful API's and Web Services
Stars: ✭ 31 (+34.78%)
Mutual labels:  edn
hgrep
Grep with human-friendly search results
Stars: ✭ 335 (+1356.52%)
Mutual labels:  pretty-print
jsoncat
Json pretty-print parser based on a recursive lexical analyser
Stars: ✭ 26 (+13.04%)
Mutual labels:  pretty-print
meta-schema
Little DSL to make data processing sane with clojure.spec and spec-tools
Stars: ✭ 25 (+8.7%)
Mutual labels:  edn

eq

Like jq, but for EDN (and a lot less powerful).

Usage

$ eq [selector [<path>]]

If no path is given, eq reads from stdin. The default selector is . (just like jq).

Examples

# pretty-print each line
cat *.edn | eq .

# pretty-print the :foo-bar value of each line
cat *.edn | eq .foo-bar

# read from a file
eq .name people.edn

Supported selectors

  • .: the object itself. This is identical to giving no selector at all.
  • :foo: Apply :foo to the current object.
  • .foo: Equivalent of :foo but .foo.bar is interpreted as :foo then :bar instead of the :foo.bar keyword.

Install

You need to have Node installed on your machine.

  1. Retrieve this project locally and run ./scripts/build-advanced. You can also download eq.js from the releases page
  2. chmod u+x target/eq.js
  3. Move target/eq.js somewhere in your PATH

With Homebrew on macOS

brew install bfontaine/utils/eq

License

Copyright © 2016-2017 Oscaro

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].