Modules - jqlang/jq GitHub Wiki
jq has a library module system, which was introduced in version 1.5.
(A jq module is essentially a file that consists only of jq filter definitions (def
s) and/or module directives for including (include
) or importing (import
) other modules. See the link in the previous paragraph for further details.)
Currently, there is no common repository of jq modules, nor is there an official jq package manager, but this page provides a listing of some jq modules and further information about package managers. See also the following "issues" pages:
List of modules
This is a non-exhaustive list of publicly available jq modules. Feel free to extend!
- https://github.com/joelpurra/jq-fallbacks
- https://github.com/joelpurra/jq-object-sorting
- https://github.com/joelpurra/jq-key-counter
- https://github.com/joelpurra/jq-zeros
- https://github.com/joelpurra/jq-stress
- https://github.com/joelpurra/jq-dry
- https://github.com/joelpurra/jq-disarray
- https://github.com/joelpurra/jq-counter-buckets
- https://github.com/joelpurra/jq-ratio-buckets
- https://github.com/nichtich/jq-jsonpointer#readme
- https://github.com/nichtich/jq-wikidata
- https://github.com/stanch/jq-modules
- https://github.com/fadado/JBOL
- https://github.com/trantor/jq-bencode
Schema-related
JSON Schema:
- https://github.com/fadado/JBOL#jgen - schema inference
- https://github.com/fadado/JBOL#jval - verifier
JESS (JSON Extended Structural Schemas)
- https://gist.github.com/pkoppstein/a5abb4ebef3b0f72a6ed - schema inference
- https://bitbucket.org/pkoppstein/jess - verifier
Snippets
- https://github.com/joelpurra/jq-hopkok (no actual modules but useful snippets)
Package managers
- https://github.com/joelpurra/jqnpm (based on a fork of jq)