format library enables you to read/write several file formats, see the Home Page for the list of supported formats.
You can download it by using
haxelib install format
You can use the library by adding
-lib format to haxe commandline parameters.
format contains one subpackage per supported file format.