https://github.com/ad-si/nodescad
Node.js wrapper for OpenSCAD
https://github.com/ad-si/nodescad
openscad
Last synced: 2 months ago
JSON representation
Node.js wrapper for OpenSCAD
- Host: GitHub
- URL: https://github.com/ad-si/nodescad
- Owner: ad-si
- Created: 2015-01-10T19:19:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-03T13:34:10.000Z (almost 10 years ago)
- Last Synced: 2024-11-21T14:23:10.892Z (11 months ago)
- Topics: openscad
- Language: JavaScript
- Size: 19.5 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeSCAD
Node.js wrapper for OpenSCAD
## Installation
`$ npm install nodescad`
## Usage
```js
var nodescad = require('nodescad'),
options = {
binaryPath: '~/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD'
inputFile: 'path/to/file'
// For more options check out the configSchema.yaml file
}nodeScad.render(options, function (error, result) {
if (error)
throw errorconsole.log(result.buffer.toString())
})
```## Styleguide
The code in this repository is formatted as seen in [github.com/style-guides/JavaScript/tree/v0.1.1](https://github.com/style-guides/JavaScript/tree/v0.1.1)
In order to check whether the code complies to the styleguide, just execute `npm run prepublish`.