kkirby / gorillascript

GorillaScript is a compile-to-JavaScript language designed to empower the user while attempting to prevent some common errors.
MIT License
5 stars 2 forks source link

gorillascript.compile #4

Closed askucher closed 8 years ago

askucher commented 8 years ago

Can I do something like

var gorillascript = require("gorillascript")
var js = gorillascript.compile("Code here")
console.log(js)
kkirby commented 8 years ago

Yup:

var gs = require('gorillascript-community');
var js = gs.compile("<<<gs-source>>>").code;
console.log(js);
vendethiel commented 8 years ago

@kkirby Didn't notice you picked this one up again :)