feature request: fx should exit non-zero when reading empty files
Author: anthony-telljohannCreated Feb 20, 2026Updated Feb 20, 2026
Labelsfeature
I would like to request that `fx` exits with a non-zero status code when reading empty files or files with only empty spaces. I wouldn't consider an empty file or a file with only empty spaces to be a valid JSON file. So it would be nice to have a way to use `fx` to confirm/deny that the file it is reading is a JSON file.
Source: antonmedv/fx