You must use npm 2.7.0 or higher because of the scoped package name.
This is the command line version of the module @mitchallen/maze2openscad.
Because this is a command line tool, you should install it using the -g flag. This may require starting the command with sudo.
$ npm install -g @mitchallen/maze2openscad-cli
If you don't have a copy of OpenSCAD you can download it for free from here: http://www.openscad.org
Create a new test folder and change to it
Find the file maze.scad in the root of the project and make a local copy of it.
Edit the include path at the top of the file and change it to:
The maze-data.scad file will be generated by the tool
To generate a maze include file with data for 10 columns and 20 rows you could do something like this:
$ maze2openscad-cli 10 20 maze-data.scad
Start OpenSCAD and open maze.scad
You should see a generated maze
Leave OpenSCAD running and run execute the command line again to see a new maze appear in OpenSCAD
To test, go to the root folder and type (sans $):
$ npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.