Origin
This is from https://openjscad.org. I just made a few changes to use it as a Node library. (Made a PR that's been open for awhile.)
Node.js (as library)
Add to project:
npm i --save jscad
Create a 'lumber' module:
; exports { return ;}
Use your module to build something and render to STL file:
var cad = ;; { return } cad;