node-jq
node-jq copied to clipboard
How to leverage jq option '--slurpfile variable-name filename' from node-jq
How do I use jq command line option '--slurpfile variable-name filename' with node-jq? I have a two files where one file stores some configurations which I want to pass and use them in filter while converting from one json to another. I am looking for storing this configuration in another json and then use that as variable.
We don't provide this flag on node-jq currently. Feel free to push a PR with this!