Skip to content

NetsBlox/Snap2Js

Repository files navigation

Build Status Test Coverage

Snap2Js

As the name suggests, Snap2Js is a compiler from Snap! to JavaScript.

Quick Start

Snap2Js requires NodeJS LTS. Snap2JS can be installed using npm as follows:

npm install -g snap2js

Next, you can compile your favorite Snap! application by first exporting it to xml then using snap2js to compile it to a js file! A "hello world" example project is provided here.

snap2js hello-world.xml
node hello-world.js