These programs sit next to magic. They are small, and they keep Magic easy to run.
| Command | Job |
|---|---|
msx |
Run a .magic file the way tsx runs TypeScript |
js2magic |
Turn JavaScript or TypeScript into a first-draft Magic script |
After npm install in this package:
npx msx examples/hello.magic
npx js2magic examples/sample.ts
From the built tree:
node dist/tools/msx.js examples/check.magic
node dist/tools/js2magic.js examples/sample.ts -o /tmp/sample.magic