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 rectangular with all npm packages installed. Try it out:

var rectangular = require("rectangular")

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

rectangular v1.0.1

Simple rectangle and point classes


Simple rectangle and point classes

Try the demo. (This demo just shows one or two features; it's really just a test harness.)

API documentation

Detailed API docs can be found here.

Regarding submodules

This repo has a git submodule, which on the remote appears as a folder that is actually a pointer to another repo, similar to a linux symbolic link. On your local it is a normal folder with a copy of that other repo's contents.


When cloning this repo keep in mind that the jsdoc-template folder is a submodule. Therefore, be sure to give the --recurse-submodules option to checkout the contents of the submodule:

$ git clone --recurse-submodules

If you forget, you can still do it (soon) after cloning as a separate command:

$ git clone
$ git submodule update --init --recursive

Re-purposing for a new repo

Openfin developers: If you want to use this build template for a new repo, to continue to make use of the symbolic link to the shared jsdoc-template folder, issue the following commands:

$ rm -drf jsdoc-template/
$ rm .gitmodules
$ git submodule add jsdoc-template

These changes will then need to be committed.


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