You can now use - argument for meson format to read input from stdin instead of reading it from a file.
-
meson format