The software team at Factual relies heavily on the outstanding work of the open source software community, and we’re always looking for opportunities to return the favor by donating our engineering time and effort.
JS2 is the first of hopefully many internal projects that we’re releasing as free, open source software. Our wish is that others will find JS2 either directly useful in their future projects, or indirectly helpful via idea exchange.
Some features include:
A JS2 Example (do this in a new directory):
Create a file called example.js2:
There will now be 3 files in this directory: example.js2, example.js, js2bootstrap.js
Just include js2bootstrap.js and example.js (in that order) in the “head” section of your html file and it should run the code. Go ahead and peek inside example.js to see what the js2 code is converted to.
We will transition JS2 to a public repository soon. More information can be found at http://code.google.com/p/js2lang
We hope you enjoy and benefit from our open source labors. And of course, we welcome your feedback!
– Jeff Su, Engineer at Factual