1
0
Fork 0
mirror of https://github.com/imjasonh/scad-to-png synced 2026-07-07 01:22:23 +00:00
scad-to-png/test-module.cjs
Jason Hall 4e648c7968
Initial commit: scad-to-png CLI tool
A Node.js CLI tool that converts OpenSCAD files to PNG images without
requiring OpenSCAD installation. Uses OpenSCAD WebAssembly for conversion
and implements a software renderer for STL to PNG conversion.

Features:
- Converts .scad files to STL and PNG outputs
- Renders from 8 different viewpoints
- No OpenSCAD installation required
- Pre-commit hooks to keep examples up to date
- GitHub Actions workflow for CI

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-20 18:10:17 -04:00

6 lines
No EOL
313 B
JavaScript

// Quick test to see what the module exports
const Module = require('./openscad-wasm-dist/openscad.js');
console.log('Module type:', typeof Module);
console.log('Module keys:', Object.keys(Module).slice(0, 10));
console.log('Module.callMain:', typeof Module.callMain);
console.log('Module.FS:', typeof Module.FS);