Skip to content

sweet-js/sweet-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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