by kylepdavis · 6y ago · 0 comments
I liked jq but liked json, a similar npm package, a little bit better for simple tasks.
You can find more about it here: https://github.com/trentm/json
As a JS dev I tend to have node installed anyhow so I just use a shell alias to wrap ‘node -pe’ these days. It’s not really for shell scripts but it’s great for quick every day usage. Plus you can use JS if needed instead of their DSL.
Here the code for the alias in my shell profile: https://github.com/KylePDavis/dotfiles/blob/master/.profile#...
No comments yet.