Popularity
5.9
Stable
Activity
0.0
Stable
4,496
133
241

Description

Hygienic Macros for JavaScript!

Macros allow you to build the language of your dreams. Sweeten JavaScript by defining new syntax for your code.

Currently, Sweet should be considered experimental and under heavy development (re-development more like). As such, the API will be undergoing a bit of churn until probably the end of the year. So, probably best not to try Sweet in production systems just yet. If you're interested in helping out though we'd love to have you!

Monthly Downloads: 0
Programming language: JavaScript
License: BSD 2-clause "Simplified" License
Tags: Editors     Syntax     Core     Extension     Macros    
Latest version: v3.0.13

sweet.js alternatives and similar libraries

Based on the "Editors" category.
Alternatively, view sweet.js alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of sweet.js or a related project?

Add another 'Editors' Library

README

Build Status

Join the chat at https://gitter.im/mozilla/sweet.js

Hygienic Macros for JavaScript!

Macros allow you to build the language of your dreams. Sweeten JavaScript by defining new syntax for your code.

Currently, Sweet should be considered experimental and under heavy development (re-development more like). As such, the API will be undergoing a bit of churn until probably the end of the year. So, probably best not to try Sweet in production systems just yet. If you're interested in helping out though we'd love to have you!

Getting started

Install the command line app with 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!')

Learning More