{"_id":"@andrivet/z80-assembler","_rev":"9-b4a3ca3ae0efa21893aa003cefd2e94f","name":"@andrivet/z80-assembler","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@andrivet/z80-assembler","version":"1.0.0","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.0.0","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"0388847f71934487f6f43af1e365e674d920aecc","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.0.0.tgz","fileCount":14,"integrity":"sha512-h1S0TecsGyiOk8IHytMqGgx0lpzu9Tiz95spIPUIcCox7kuwobc7W51Iv49ZjznClolCZx6RqsRDvK/RuKfRvg==","signatures":[{"sig":"MEUCIC94diWrtvyUPpxAPFQNVMaWMuAep4fTl4Csn3k7X7p/AiEA/gONTLNG+u8gsEzKha/z8TJC4ozolIT2zuQP13Y/bOE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":711314},"type":"commonjs","types":"./index.d.ts","gitHead":"17bf66fa58133eff0d84f75d4a833eff4511c397","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"9.6.4","directories":{},"_nodeVersion":"20.1.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.0.0_1686000533987_0.29082059040940633","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@andrivet/z80-assembler","version":"1.1.0","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.1.0","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"68bbd9302e1af1716c6a983c62476e11f4a8aa59","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.1.0.tgz","fileCount":16,"integrity":"sha512-IhOLrk/wmL4fi+mnWiTC3YseclDUvwUZSxv0H4IxsR1BZpb/M2xlH3CDgl1iY34kX3GUwgt7YGKL+ZGYT6XosA==","signatures":[{"sig":"MEYCIQCXeWALf1ALt0Ix6htCCLyGQloKsbJMG49s/19iuOjgIgIhAPCWqL5ccPOiwL3ayfSAoyWOQJos8aR7Ee3K/jdPYMsI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":719143},"type":"commonjs","types":"./index.d.ts","gitHead":"7e8749d752edcb9cd4876af75037e9c2901cbd52","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"9.6.4","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","directories":{},"_nodeVersion":"20.1.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.1.0_1686662446429_0.5062887975267167","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@andrivet/z80-assembler","version":"1.2.0","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.2.0","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"0dd729751f48ad0d7c4a89a434816085b1eba0fb","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.2.0.tgz","fileCount":17,"integrity":"sha512-FSDDwGayDsmCLZO5/uKuDAxPDOowSNcGT8nq8kOqkM9M1GRDwmttM8mHspXZn6WssFhjRZipf2QTd61ryuGiPA==","signatures":[{"sig":"MEYCIQDMTuBVNelsbMGK9ztUYLjMVs4p23tF5yCPUIi3wsEk2QIhAICoD0NTWOgKimeTouH6u+wFY/oWMMBHUmlfLGOM7wvh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":727662},"type":"commonjs","types":"./index.d.ts","gitHead":"87421d89bb9893aa6325c0e6987c113b6317b9e1","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"9.6.4","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","directories":{},"_nodeVersion":"20.1.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.2.0_1687282516005_0.3450920185085504","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@andrivet/z80-assembler","version":"1.3.0","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.3.0","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"f7577cbe95499e4dd92a9f43a19484411cefa99f","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.3.0.tgz","fileCount":17,"integrity":"sha512-6IKPu3yIkUru3peLsObdfIC+6AVKDzysiRpaxD2L5Pt44rQf3PTFfg0tKf+c6lj2hcaynkLCUKwcawgdQhLk5w==","signatures":[{"sig":"MEUCICkpsvOG4xDFwSIoUaR9gRXCZYwGqoyIJLKP4F6eiYVgAiEAkjwRO1fyxjxQTycNcEAQ/oRw+kQuA/VW84zCh34HoSg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":772827},"type":"commonjs","types":"./index.d.ts","gitHead":"503f458fb6dae5bd652e52bd17c3427e60a6662e","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"9.6.4","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","directories":{},"_nodeVersion":"20.1.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.3.0_1687939619134_0.5230251288665984","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@andrivet/z80-assembler","version":"1.3.1","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.3.1","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"9104d29db19a472e960d43497e2f817745fc9b2a","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.3.1.tgz","fileCount":17,"integrity":"sha512-Ut9sCoj4LR5DGuuwPI8R5KzQ3aUShSuNZibsmNopuJ9ttmB5nmtrB8D0NOPWBw9bSiZfKJkoMuHN85l6ihVc9Q==","signatures":[{"sig":"MEUCIQCrrE7GbtPby/zHmGo3GVXYSWGPqQNNpA0ssWTYW+EoFgIgUvBJ/Hw2zC0ddN81P8ySS87XDjwwKT9w+P02b4wrYyk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":622287},"type":"commonjs","types":"./index.d.ts","gitHead":"3c7583fa0bcc5b666e1e3c75a2746ad9a8d67941","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"9.8.1","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.3.1_1732105868618_0.32653341349888776","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@andrivet/z80-assembler","version":"1.3.2","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.3.2","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"b58a93663085183af05129814c8cebe24ffcb134","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.3.2.tgz","fileCount":17,"integrity":"sha512-pGuWeaSYTO9+8bVMfa1B5ZXTucwA0l7xltdd7iJlAQM1PMqh2n7AqJHb+lCFrElT8aTU7iNiMEhHMP6Cq+uGyQ==","signatures":[{"sig":"MEUCIHq42Pg3o9fWljKyQPylHBW1JhEJ0KL/Wg3NkQiFbWnmAiEAuWVptCLxV9MyHVYRz3oxZCZC8irG+yOrJ2qzjMcP2Tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":622569},"type":"commonjs","types":"./index.d.ts","gitHead":"e93e1068bdc1334ab52348e8681c1e6781c494ba","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"9.8.1","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.3.2_1732120148716_0.24596908124865258","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@andrivet/z80-assembler","version":"1.4.0","license":"GPLv3","_id":"@andrivet/z80-assembler@1.4.0","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://andrivet.github.io/z80-assembler","dist":{"shasum":"c54d37504df0f3380a3b47d2f8baa2d0de54904b","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.4.0.tgz","fileCount":186,"integrity":"sha512-xJu9S4JhBvVZTQsa99cVCziyltbzkBoRPuzxth0M8FNpm9zE3qnIjmjUXmV3YMgtmQxLY1oUvNa8Vg7u98xsAQ==","signatures":[{"sig":"MEUCIFeJW+DnkY0DzNqkAo/DrBuxSxMhzSdagZC5MsJuoh8eAiEAzNsDE6BukdDPo6kxDkzG+Ok1MAHgLOq3z6g6ydQwISI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3214119},"gitHead":"e93e1068bdc1334ab52348e8681c1e6781c494ba","private":false,"_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"_npmVersion":"11.6.2","description":"![Z80](assets/images/logo.png)","directories":{},"_nodeVersion":"24.12.0","dependencies":{"react":"^18.2.0","daisyui":"^3.9.4","react-dom":"^18.2.0","codemirror":"^6.0.1","react-icons":"^4.9.0","@swc/helpers":"~0.5.1","react-daisyui":"^4.1.2","browser-fs-access":"^0.34.1","@uiw/react-codemirror":"^4.20.2"},"_hasShrinkwrap":false,"devDependencies":{"nx":"^16.3.1","vite":"^4.5.5","jsdom":"~22.1.0","tspeg":"^3.3.2","@nx/js":"^16.3.1","eslint":"^8.57.1","vitest":"~0.32.2","postcss":"^8.4.24","@nx/vite":"^16.3.1","@swc/cli":"^0.5.1","gh-pages":"^5.0.0","prettier":"^2.8.8","@nx/react":"^16.3.1","@swc/core":"~1.3.61","@nx/linter":"^16.3.1","@vitest/ui":"~0.32.2","typescript":"^5.1.3","@types/node":"^20.2.5","tailwindcss":"^3.3.2","@types/react":"^18.2.8","autoprefixer":"^10.4.14","@nx/workspace":"^16.3.1","vite-plugin-dts":"^2.3.0","@types/react-dom":"^18.2.4","@nx/eslint-plugin":"^16.3.1","vite-plugin-eslint":"^1.8.1","@vitest/coverage-c8":"~0.32.2","eslint-plugin-react":"^7.32.2","vite-tsconfig-paths":"^4.2.0","@vitejs/plugin-react":"^4.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-cypress":"^2.13.3","@testing-library/react":"^14.0.0","eslint-config-prettier":"^8.8.0","eslint-plugin-jsx-a11y":"^6.7.1","@typescript-eslint/parser":"^5.59.8","eslint-plugin-react-hooks":"^4.6.0","@typescript-eslint/eslint-plugin":"^5.59.8"},"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.4.0_1766403261520_0.41829207230942744","host":"s3://npm-registry-packages-npm-production"}},"1.4.1":{"name":"@andrivet/z80-assembler","version":"1.4.1","keywords":["z80","assembler","ZX81"],"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","_id":"@andrivet/z80-assembler@1.4.1","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"homepage":"https://github.com/andrivet/z80-assembler#readme","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"dist":{"shasum":"69134e8077662136a30afb7d4500da315ed774c4","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-1.4.1.tgz","fileCount":17,"integrity":"sha512-XTsYZfp7QV17JdC2zRXZ/VwU7OHj+spZ+RtiV4f/nzmBPsNarsodnaGPV/dsjVLVElI7oxfHk8knZyRjUTooSA==","signatures":[{"sig":"MEUCIQDd4QA/HQ2JstiZht1g3ojDajRb9arsI6XMJ2zChCLB7wIgQxULxf31QxPPcj91SDbCTP3wuYe+SbQuhlWD2awLB+w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":628478},"type":"commonjs","types":"./index.d.ts","gitHead":"bc1a81f0385ddfea20423abbc5adcdf820ee958d","_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"repository":{"url":"git+https://github.com/andrivet/z80-assembler.git","type":"git"},"_npmVersion":"11.6.2","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/z80-assembler_1.4.1_1766406908663_0.7072334167395176","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@andrivet/z80-assembler","version":"2.0.0","description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","author":{"name":"Sebastien Andrivet"},"license":"GPLv3","type":"commonjs","keywords":["z80","assembler","ZX81"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/andrivet/z80-assembler.git"},"gitHead":"50acbe8eac512bc4b2165314525b630041a5162a","types":"./index.d.ts","_id":"@andrivet/z80-assembler@2.0.0","bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"homepage":"https://github.com/andrivet/z80-assembler#readme","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-hPPWulqiEE6Nq40ecG/sRCRxR/kq/x/G7g1T174ANVvP1NhgFs0HKbgVhoY8IVq4AXtwPuZ3Yp/TnGMu3u1s0A==","shasum":"d78ae6e8a96490a9263cd205c5800705fa4144af","tarball":"https://registry.npmjs.org/@andrivet/z80-assembler/-/z80-assembler-2.0.0.tgz","fileCount":17,"unpackedSize":870575,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBCP36dGr0fnVN4g7VdERdt+rycIx73l7J9ASLsV1FbHAiEA47UzSZLQkmxznhjb0fSwTVtClIGbgGFDe5yVyGbSNLg="}]},"_npmUser":{"name":"andrivet","email":"sebastien@andrivet.com"},"directories":{},"maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/z80-assembler_2.0.0_1767008468180_0.367624607082496"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-05T21:28:53.901Z","modified":"2025-12-29T11:41:08.533Z","1.0.0":"2023-06-05T21:28:54.200Z","1.1.0":"2023-06-13T13:20:46.653Z","1.2.0":"2023-06-20T17:35:16.255Z","1.3.0":"2023-06-28T08:06:59.381Z","1.3.1":"2024-11-20T12:31:08.793Z","1.3.2":"2024-11-20T16:29:08.918Z","1.4.0":"2025-12-22T11:34:21.754Z","1.4.1":"2025-12-22T12:35:08.829Z","2.0.0":"2025-12-29T11:41:08.340Z"},"bugs":{"url":"https://github.com/andrivet/z80-assembler/issues"},"author":{"name":"Sebastien Andrivet"},"license":"GPLv3","homepage":"https://github.com/andrivet/z80-assembler#readme","keywords":["z80","assembler","ZX81"],"repository":{"type":"git","url":"git+https://github.com/andrivet/z80-assembler.git"},"description":"A Z80 assembler entirely written in Typescript and derived from a PEG grammar.","maintainers":[{"name":"andrivet","email":"sebastien@andrivet.com"}],"readme":"# z80-assembler\n\nA Z80 assembler library entirely written in Typescript and derived from a PEG grammar.\nIt optimized for the old ZX81 computer but can also be used with any other Z80 targets.\n\n## Demo application\n\nA demo application is available: https://andrivet.github.io/z80-assembler/.\n\n## Quick guide to use the library\n\nTo install the library:\n\n```\n$ npm install @andrivet/z80-assembler\n```\n\nThe main function is simply called `compile`. It takes three arguments:\n\n* the name of the source file\n* the Z80 source code to compile\n* a function used to return the content of included files\n\nIt returns an object of type `CompilationInfo` with the following fields:\n\n* `outputName`: The name of the output as set by the `output` directive.\n* `bytes`: A array of numbers. Each element represents a byte of the generated machine code.\n* `sld`: The Source Level Debugging data as a string. This is used in order to debug the code.\n* `errs`: An array of errors\n\nA typical way to use the function is:\n\n```\nconst info = compile(filepath, code, handleGetFileCode);\nif(info.errs.length > 0)\n  displayErrors(info.errs);\nelse\n  saveOutput(info.outputName, info.bytes);\n```\n\nYou can find a complete example in the [demo application](https://github.com/andrivet/z80-assembler/), in particular in the `app.tsx` file.\n\n\n## Source code\n\nThe source code is published on GitHub: https://github.com/andrivet/z80-assembler/.\n\n## Licence\n\nThis library and associated application are released under GPLv3.\n\n## Copyrights\n\nCopyright (C) 2023 Sebastien Andrivet\n","readmeFilename":"README.md"}