{"id":20159700,"url":"https://github.com/nowsecure/node-fatmacho","last_synced_at":"2025-04-09T23:36:40.359Z","repository":{"id":4070857,"uuid":"51183818","full_name":"nowsecure/node-fatmacho","owner":"nowsecure","description":"fat mach-o file-format parsers","archived":false,"fork":false,"pushed_at":"2022-02-12T13:05:51.000Z","size":73,"stargazers_count":9,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T16:01:28.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowsecure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-06T01:05:26.000Z","updated_at":"2023-09-18T01:20:03.000Z","dependencies_parsed_at":"2022-07-22T05:32:22.305Z","dependency_job_id":null,"html_url":"https://github.com/nowsecure/node-fatmacho","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnode-fatmacho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnode-fatmacho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnode-fatmacho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fnode-fatmacho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowsecure","download_url":"https://codeload.github.com/nowsecure/node-fatmacho/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248130900,"owners_count":21052816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T00:09:36.497Z","updated_at":"2025-04-09T23:36:40.338Z","avatar_url":"https://github.com/nowsecure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fatmacho\n========\n\nfat mach-o file-format parsers\n\nLegal\n-----\nThis node module has been written by Sergi Àlvarez at Nowsecure and it is distributed under the MIT license.\n\nUsage\n-----\n\nThe `parse` method accepts a Buffer as argument and returns an array of sub-binaries stored in there.\n\n```js\n\u003e var fat = require('fatmacho');\n\u003e fat.parse(fs.readFileSync('test.fatbin'));\n[\n  {\n    arch: \"arm\",\n    offset: 4096,\n    size: 120656,\n    align: 14,\n    data: \u003cBuffer ce fa ed fe 0c 00 00 00 09 00 00 00 02 00 00 00 ... \u003e }\n  },\n  {\n    ...\n  }\n]\n```\n\nThis is a more elaborated example:\n\n```js\n'use strict';\n\nconst fs = require('fs');\nconst macho = require('macho');\nconst fat = require('fatmacho');\nconst data = fs.readFileSync(file);\nconst bins = fat.parse(process.argv[2]);\n\nfor (const b of bins) {\n  console.log(b.arch, b.offset, '+', b.size);\n  console.log(macho.parse (b.data));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Fnode-fatmacho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowsecure%2Fnode-fatmacho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Fnode-fatmacho/lists"}