I'm in the process of making a few enhancements to the puremagic lib. One thing I thought was really helpful about the library is that it just looks at the first bytes and provides a standard name. I found that using when the alternative libmagic, the file types are just a long concatenated string and can make analysis based on those values to be somewhat difficult.
This commit just makes some of the code more legible and makes the magic numbers available via the result from the API.
Coverage increased (+0.1%) to 95.385% when pulling eea9f5705a937479393d8394eb18fb6939f0e6b7 on dshunfen:master into 6d9de9a5e0ffb16a2a76911fbc58ad2aca3b8642 on cdgriffith:master.
Coverage increased (+0.1%) to 95.385% when pulling eea9f5705a937479393d8394eb18fb6939f0e6b7 on dshunfen:master into 6d9de9a5e0ffb16a2a76911fbc58ad2aca3b8642 on cdgriffith:master.
Coverage increased (+0.1%) to 95.385% when pulling eea9f5705a937479393d8394eb18fb6939f0e6b7 on dshunfen:master into 6d9de9a5e0ffb16a2a76911fbc58ad2aca3b8642 on cdgriffith:master.
I'm in the process of making a few enhancements to the
puremagic
lib. One thing I thought was really helpful about the library is that it just looks at the first bytes and provides a standard name. I found that using when the alternativelibmagic
, the file types are just a long concatenated string and can make analysis based on those values to be somewhat difficult.This commit just makes some of the code more legible and makes the magic numbers available via the result from the API.