A command-line utility which takes a JSON array in via stdin (a pipe), shuffles
the contents, and prints the result to stdout with a trailing \n
character.
See the LICENSE file.
Binaries for Windows, GNU/Linux, and macOS will be available from GitHub once CI/CD has been set up.
In the meantime you will need to build this tool from source.
Assuming you have:
- the Rust tools installed and are able to run them successfully
- cloned this repository to your machine
cd
-ed into the root of this repository
Run the following command (excluding the $
):
$ cargo build --release
If it builds successfully you will have an executable at
target/release/json-arr-shuffle
that you will need to put in one of the
directories on your $PATH
.
$ echo "[5, 6, 7]" | json-arr-shuffle
[5,7,6]
$ echo '["hello", 6, true]' | json-arr-shuffle
[6,"hello",true]
Development is done on GitHub.
Please consider financially supporting the project if it has made your life easier, saved you time, etc., or as a way to say "thanks!" by becoming a Patron of the maintainer.