Auto Export - caffeine-suite/caffeine-script GitHub Wiki

Related: Auto Import, Auto Require, Modules and CommonJs

The return value of the file is the exports for the module. As with any other statements-block, the last statement of the file is its return value.

Example

# CaffeineScript
class Foo extends &MyBaseClass
  bar: -> "foo bar"
// JavaScript
module.exports = class Foo extends require('./MyBaseClass') {
  bar() {return "foo bar";}
};
⚠️ **GitHub.com Fallback** ⚠️