mirror of
https://github.com/imjasonh/scad-to-png
synced 2026-07-07 01:22:23 +00:00
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>
34 lines
No EOL
755 B
JSON
34 lines
No EOL
755 B
JSON
{
|
|
"name": "scad-to-png",
|
|
"version": "1.0.0",
|
|
"description": "CLI tool to convert OpenSCAD files to PNG images without requiring OpenSCAD installation",
|
|
"type": "module",
|
|
"main": "scad-to-png",
|
|
"bin": {
|
|
"scad-to-png": "./scad-to-png"
|
|
},
|
|
"scripts": {
|
|
"test": "node scad-to-png test.scad",
|
|
"example:box": "node scad-to-png examples/simple-box.scad",
|
|
"example:gear": "node scad-to-png examples/gear.scad"
|
|
},
|
|
"keywords": [
|
|
"openscad",
|
|
"stl",
|
|
"png",
|
|
"3d",
|
|
"rendering",
|
|
"wasm",
|
|
"cli"
|
|
],
|
|
"author": "Jason Hall",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"@napi-rs/canvas": "^0.1.71",
|
|
"commander": "^12.0.0",
|
|
"fs-extra": "^11.2.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |