fat mach-o file-format parsers
This node module has been written by Sergi Àlvarez at Nowsecure and it is distributed under the MIT license.
parse method accepts a Buffer as argument and returns an array of sub-binaries stored in there.
> var fat = ;> fat;arch: "arm"offset: 4096size: 120656align: 14data: <Buffer ce fa ed fe 0c 00 00 00 09 00 00 00 02 00 00 00 ... >}...
This is a more elaborated example:
'use strict';const fs = ;const macho = ;const fat = ;const data = fs;const bins = fat;for const b of binsconsole;console;