Skip to content

NodeJs Loader

Shane Brinkman-Davis Delamore edited this page Apr 10, 2017 · 2 revisions
Node

In order to use CaffeineScript files directly in node, first:

require('caffeine-mc/register');

And then you can require any .caf file just like you would any .js file. Note that .js files with the same base-name have priority when in the same directory.

Clone this wiki locally