Usage
Last updated
Last updated
After installing it, you may call jstr
providing the argument to understand a bit more about its options and such:
You can use NO_COLOR=1
to turn off colors from the help message
This will print some examples and description to available options, but jstr
is quite simple to understand, it will basically:
Receive a JSON input;
By simply providing the relative file path: jstr my-file.json
;
Or using the option to receive your JSON from a piped command (stdin
).
Apply any transformation based on the Options provided;
Run the Callback Parser (if provided) passing the result from step 2;
Output the data by printing it (or copy to clipboard, if you pass the option).
As you can see, all options & handler are optional, making jstr
quite a flexible tool.
And as usual, since jstr
will by default print the result to your terminal, you can use it to create new JSON files (or whatever file type you want):