I typically use dos2unix for stripping BOMs. The best feature of dos2unix is that it converts the file in-place. It would be super nice if strip-bom just modified the file in place.
Desired usage:
strip-bom-cli -i foo.txt
(proposing -i
flag to mirror sed's in-place flag)
Of course, I recognize that it prints to STDOUT, but since the target file is truncated before output redirection takes effect, one can't strip-bom-cli foo.txt > foo.txt
(results in an empty file).
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too