Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
[](https://github.com/alufers/openscad-parser/actions?query=workflow%3A%22Node.js+CI%22)
[](https://github.com/alufers/openscad-parser/blob/master/LICENSE.md)
[](https://www.npmjs.com/package/openscad-parser)
# openscad-parser
This package facilitates parsing, formatting and validating the OpenSCAD language using TypeScript and JavaScript.
# Installation (formatter)
```sh
$ npm i -g openscad-parser
```
Usage:
```sh
$ scadfmt <file> # outputs the formatted OpenSCAD code to stdout
```
# Installation (as a node module)
```sh
npm install openscad-parser
```
# Features
- [x] Parsing and full error reporting (reports even better errors than the default OpenSCAD parser)
- [x] Symbol tree generation (VSCode "Outline" view)
- [x] Formatting (fully AST-aware, needs some more work with breaking up large vectors)
- [x] Semantic code completions (provides code completions for VSCode)
- [x] Jump to definition (provides a "Go to definition" context menu item)
I will soon release a vscode extension with full OpenSCAD support, it just needs some more work.
# Documentation
The API documentation is available [here](https://alufers.github.io/openscad-parser/).
# License
[MIT](https://github.com/alufers/openscad-parser/blob/master/LICENSE.md)
2d56448eaThis file is pinned to the selected release. Download the original to open it in your design tool.