@scratch-compiler/cli
v2.0.0
Published
SB3 asset extraction tool
Downloads
504
Maintainers
Readme
@scratch-compiler/cli
Compiles a Scratch .sb3 project into a small static site (HTML + JS + assets).
Install
npm i -g @scratch-compiler/cliOr run without installing:
npx @scratch-compiler/cli <file.sb3> <output-dir>Usage
scratch-compile path/to/project.sb3 outThis writes:
out/index.htmlout/src/main.jsout/src/engine.min.js(runtime bundle)out/assets/*(costumes/sounds)
Open out/index.html in a browser.
Development (Repo)
pnpm install
pnpm run build
pnpm --filter @scratch-compiler/cli run start