Sweet.js is a Mozilla Library for adding Macro Compilation to JavaScript
Sweet.js brings the hygienic macros of languages like Scheme and Rust to JavaScript. Macros allow you to alter the syntax of JavaScript and craft the language you've always wanted.
To get a better sense of what macros can do, check out some example macros or play around with macros in the online editor.