You need to add a constructor function and export the reference to that.
The bind your contants to that function. so if you called it myMod :
var myMod = function (options) {
this.options = {} || options;
};
myMod.C = {
U : "up",
D : "down",
L : "left",
R : "right",
N : "north",
E : "east",
S : "south",
W : "west",
T : "top",
M : "middle",
B : "bottom"
};
exports = myMod;
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Go back and have a look at the sample: http://www.espruino.com/Writing+Modules
You need to add a constructor function and export the reference to that.
The bind your contants to that function. so if you called it
myMod
: