json-colorizer has been rewritten from scratch recently. Colorizing in jfq doesn't work with the latest version saying
colorize is not a function
This simple patch makes it work again
--- a/src/jfq.js
+++ b/src/jfq.js
@@ -1,4 +1,4 @@
-import colorize from 'json-colorizer'
+const { colorize } = require('json-colorizer');
import jsonata from 'jsonata'
import readInput from 'read-input'
import getopts from './getopts'
json-colorizerhas been rewritten from scratch recently. Colorizing injfqdoesn't work with the latest version sayingThis simple patch makes it work again