Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 496 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 496 Bytes

sweet-cli

This is the command line package for sweet.js.

For more information about Sweet in general and to read the documentation, see the website.

Getting started

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!')