Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including generator-jscad with all npm packages installed. Try it out:

var generatorJscad = require("generator-jscad")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

generator-jscad v2.1.2

Create a jscad project

generator-jscad NPM version

Create a jscad project

Installation

First, install Yeoman and generator-jscad using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-jscad

Then generate your new project:

yo jscad

Running

The jscad project uses gulp to create a dist directory and watch for changes. You can drag the dist directory into the drop area on openjscad.org. Make sure you check Auto Reload and any time you save, glup will recreate the dist directory files and your model should refresh.

jscad-utils

The example project uses jscad-utils. This is a set of utilities that make object creation and alignment easier. To remove it, npm uninstall --save jscad-utils.

License

MIT © John Cole

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free