{"_id":"@binutils-wasm/gas","_rev":"6-392d2ddb77faacfb397f826466003f44","name":"@binutils-wasm/gas","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.1":{"name":"@binutils-wasm/gas","version":"0.1.1","keywords":[],"author":{"name":"Mix","email":"32300164+mnixry@users.noreply.github.com"},"license":"GPL-3.0-or-later","_id":"@binutils-wasm/gas@0.1.1","maintainers":[{"name":"mixpm","email":"npmjs@yami.im"}],"homepage":"https://github.com/mnixry/binutils-wasm#readme","bugs":{"url":"https://github.com/mnixry/binutils-wasm/issues"},"dist":{"shasum":"d774330cf8492399097f53a7a6fce65c074524fc","tarball":"https://registry.npmjs.org/@binutils-wasm/gas/-/gas-0.1.1.tgz","fileCount":38,"integrity":"sha512-PVnZE3hl9A+uIiGRE0sBWyt77oQoPMzw1hW+CXYjcbn4mYrI3LMF5nk86pQ35AUFfSOicoacCVk3gozO6w3kMg==","signatures":[{"sig":"MEYCIQDYyPHQyKTHzaIQrwbLESyDTO45nkWal6d0HmXpy0jQ1wIhAJMJNXG9u5eHZNLd/WvbRa/vOvLN9J445AjFZ38PZ+U5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45869782},"main":"dist/index.js","_from":"file:binutils-wasm-gas-0.1.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"build":"pnpm run build:wasm && pnpm run build:wrapper","prebuild":"rm -rf ./build/dist","build:wasm":"tsx build/dist.ts","build:wrapper":"tsup"},"_npmUser":{"name":"mixpm","email":"npmjs@yami.im"},"_resolved":"/tmp/957b803387421f15af57280843830d3d/binutils-wasm-gas-0.1.1.tgz","_integrity":"sha512-PVnZE3hl9A+uIiGRE0sBWyt77oQoPMzw1hW+CXYjcbn4mYrI3LMF5nk86pQ35AUFfSOicoacCVk3gozO6w3kMg==","repository":{"url":"git+https://github.com/mnixry/binutils-wasm.git","type":"git","directory":"packages/gas"},"_npmVersion":"10.2.4","description":"GNU/Assembler compiled to WebAssembly","directories":{},"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","tsup":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/gas_0.1.1_1707247791510_0.6865274300282873","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@binutils-wasm/gas","version":"0.1.2","keywords":[],"author":{"name":"Mix","email":"32300164+mnixry@users.noreply.github.com"},"license":"GPL-3.0-or-later","_id":"@binutils-wasm/gas@0.1.2","maintainers":[{"name":"mixpm","email":"npmjs@yami.im"}],"homepage":"https://github.com/mnixry/binutils-wasm#readme","bugs":{"url":"https://github.com/mnixry/binutils-wasm/issues"},"dist":{"shasum":"3d15aa4002124b709e1018612c876101b4b21b76","tarball":"https://registry.npmjs.org/@binutils-wasm/gas/-/gas-0.1.2.tgz","fileCount":39,"integrity":"sha512-hR1Dh/jfsVk6seV/o786iSSYbskqpFIWuh4f4s48cbfgW8wd1FxAjUMvbRHfJ329+iEPVugFtbZO08np3qaaXw==","signatures":[{"sig":"MEUCIGnRAS3ez/0YW2eGVSvfHNhxSR7UuvKrk1VRZZdhXWO9AiEAxCEsASRUaH1LBa5zD4scwOA4qb/J7ggYfTPswt5eVHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45872207},"main":"dist/index.js","_from":"file:binutils-wasm-gas-0.1.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"build":"pnpm run build:wasm && pnpm run build:wrapper","prebuild":"rm -rf ./build/dist","build:wasm":"tsx build/dist.ts","build:wrapper":"tsup"},"_npmUser":{"name":"mixpm","email":"npmjs@yami.im"},"_resolved":"/tmp/d6e61ca15606d4edc4c9f1dd367c4cd8/binutils-wasm-gas-0.1.2.tgz","_integrity":"sha512-hR1Dh/jfsVk6seV/o786iSSYbskqpFIWuh4f4s48cbfgW8wd1FxAjUMvbRHfJ329+iEPVugFtbZO08np3qaaXw==","repository":{"url":"git+https://github.com/mnixry/binutils-wasm.git","type":"git","directory":"packages/gas"},"_npmVersion":"10.2.4","description":"GNU/Assembler compiled to WebAssembly","directories":{},"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.0","tsup":"^8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/gas_0.1.2_1707674530893_0.5112439452102764","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@binutils-wasm/gas","version":"0.1.3","keywords":[],"author":{"name":"Mix","email":"32300164+mnixry@users.noreply.github.com"},"license":"GPL-3.0-or-later","_id":"@binutils-wasm/gas@0.1.3","maintainers":[{"name":"mixpm","email":"npmjs@yami.im"}],"homepage":"https://github.com/mnixry/binutils-wasm#readme","bugs":{"url":"https://github.com/mnixry/binutils-wasm/issues"},"dist":{"shasum":"969f010d5254b21b251fa321297fcc88680ca0f3","tarball":"https://registry.npmjs.org/@binutils-wasm/gas/-/gas-0.1.3.tgz","fileCount":39,"integrity":"sha512-ZcX0dzkgKtfYwL/1JAgOrT7cK1SYH0ts90QF80GMvgdeM+p5pC7i0LIcbZsbRcPpv0ShbXyOroDqKFHdgWhRbA==","signatures":[{"sig":"MEUCIBVVhWmYF2CmTYbrpI+fcs3ClsmTHmVJr34j82hoXuAkAiEA7POOB2rtHjIa4psY+k8HVaxQehYkhVHE1bx6lzZEJmE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46086172},"main":"dist/index.js","_from":"file:binutils-wasm-gas-0.1.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"build":"pnpm run build:wasm && pnpm run build:wrapper","prebuild":"rm -rf ./build/dist","build:wasm":"tsx build/dist.ts","build:wrapper":"tsup"},"_npmUser":{"name":"mixpm","email":"npmjs@yami.im"},"_resolved":"/tmp/f7aed56585cf4d29a1cce9f97ecbaa81/binutils-wasm-gas-0.1.3.tgz","_integrity":"sha512-ZcX0dzkgKtfYwL/1JAgOrT7cK1SYH0ts90QF80GMvgdeM+p5pC7i0LIcbZsbRcPpv0ShbXyOroDqKFHdgWhRbA==","repository":{"url":"git+https://github.com/mnixry/binutils-wasm.git","type":"git","directory":"packages/gas"},"_npmVersion":"10.8.1","description":"GNU/Assembler compiled to WebAssembly","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.5","tsup":"^8.2.4"},"_npmOperationalInternal":{"tmp":"tmp/gas_0.1.3_1722920554156_0.24645248663587416","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@binutils-wasm/gas","version":"0.2.0","description":"GNU/Assembler compiled to WebAssembly","repository":{"type":"git","url":"git+https://github.com/mnixry/binutils-wasm.git","directory":"packages/gas"},"homepage":"https://github.com/mnixry/binutils-wasm#readme","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","keywords":[],"author":{"name":"Mix","email":"32300164+mnixry@users.noreply.github.com"},"license":"GPL-3.0-or-later","devDependencies":{"tsup":"^8.4.0","tsx":"^4.19.3"},"scripts":{"build:wrapper":"tsup","build:wasm":"tsx build/dist.ts","build":"pnpm run build:wasm && pnpm run build:wrapper","prebuild":"rm -rf ./build/dist"},"_id":"@binutils-wasm/gas@0.2.0","bugs":{"url":"https://github.com/mnixry/binutils-wasm/issues"},"_integrity":"sha512-c+wATAg+rlYkCqmVNO+zi+9mLPi/0bL5/I15HNq3eRWxqlDFCr7NYMEJODbcoNNK2cS8Ce1R+00Rr9Z51Qoheg==","_resolved":"/tmp/522f6305d3993a772fcf364dd39a3678/binutils-wasm-gas-0.2.0.tgz","_from":"file:binutils-wasm-gas-0.2.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-c+wATAg+rlYkCqmVNO+zi+9mLPi/0bL5/I15HNq3eRWxqlDFCr7NYMEJODbcoNNK2cS8Ce1R+00Rr9Z51Qoheg==","shasum":"bbc945898670b978826d62d444a14fe5754b451b","tarball":"https://registry.npmjs.org/@binutils-wasm/gas/-/gas-0.2.0.tgz","fileCount":39,"unpackedSize":46438089,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFQbdp/aWJFxme29HKKb7vi0Eesjr6lSaTP4+ks+MKesAiBMX4dua7ZkzNnmwrRM+NPgH5J7KkqXDwVi6KH0964ZUg=="}]},"_npmUser":{"name":"mixpm","email":"npmjs@yami.im"},"directories":{},"maintainers":[{"name":"mixpm","email":"npmjs@yami.im"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gas_0.2.0_1743324071298_0.7824404768418958"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-06T19:29:51.435Z","modified":"2025-03-30T08:41:11.874Z","0.1.0":"2024-01-30T04:25:17.346Z","0.1.1":"2024-02-06T19:29:51.877Z","0.1.2":"2024-02-11T18:02:11.270Z","0.1.3":"2024-08-06T05:02:34.686Z","0.2.0":"2025-03-30T08:41:11.714Z"},"bugs":{"url":"https://github.com/mnixry/binutils-wasm/issues"},"author":{"name":"Mix","email":"32300164+mnixry@users.noreply.github.com"},"license":"GPL-3.0-or-later","homepage":"https://github.com/mnixry/binutils-wasm#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/mnixry/binutils-wasm.git","directory":"packages/gas"},"description":"GNU/Assembler compiled to WebAssembly","maintainers":[{"name":"mixpm","email":"npmjs@yami.im"}],"readme":"# binutils-wasm\n\n![CI](https://github.com/mnixry/binutils-wasm/actions/workflows/build.yml/badge.svg) ![NPM Version of GAS](https://img.shields.io/npm/v/%40binutils-wasm%2Fgas?label=%40binutils-wasm%2Fgas)\n\nThis project is divided into several components:\n\n- A WebAssembly version of GNU Binutils, which is available as an NPM package for use in both Node.js and browser environments. (This README is about this component)\n- A command-line tool that is based on the aforementioned package. It provides a variety of platform-specific Binutils that can be used on any device supporting Node.js (work in progress).\n- A static web page built on the aforementioned package that offers assembly and disassembly for multiple architectures. It's accessible directly through a web browser. (Refer to the [GitHub](https://github.com/mnixry/binutils-wasm#readme) page for more details)\n\n## Introduction\n\nThis is a WebAssembly port of GNU Assembler (GAS). It's available as an NPM package that can be used in Node.js or browser environments. The package is built using [EMScripten](https://emscripten.org/).\n\n## Features\n\n- Supports mainstream architectures that are supported by GNU Assembler\n- Nearly identical in functionality to the original GNU Assembler\n\n## Usage\n\nTo use it, install the package from NPM and import it into your project.\n\n```bash\nnpm install @binutils-wasm/gas\n```\n\n```javascript\nimport loader from \"@binutils-wasm/gas\";\n\nconst gas = await loader(\"x86_64-linux-gnu\");\nawait gas({\n  print: console.log,\n  printErr: console.error,\n  arguments: [\"-c\", \"a.s\"],\n  preRun: [\n    (m) => {\n      m.FS.writeFile(\"a.s\", \"movq %rax, %rbx\");\n    },\n  ],\n});\n```\n\n## License\n\nThis project is licensed under the GPLv3 License in accordance with the license of GNU Binutils.\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n","readmeFilename":"README.md"}