snap2js

Cross compiler from Snap! to JavaScript

Usage no npm install needed!

<script type="module">
  import snap2js from 'https://cdn.skypack.dev/snap2js';
</script>

README

Build Status Test Coverage

Snap2Js

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

Quick Start

Snap2Js requires NodeJS LTS (v6). 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