Tools that use libdmtx to read and create data matrix codes.

Please include in homebrew, which already has libdmtx. 
The code is from the author of libdmtx.