This is the command line package for sweet.js.
For more information about Sweet in general and to read the documentation, see the website.
Install @sweet-js/cli via npm:
$ npm install -g @sweet-js/cli
Write your sweet code:
syntax hi = function (ctx) {
return #`console.log('hello, world!')`;
}
hi
And compile:
$ sjs my_sweet_code.js
console.log('hello, world!')