Node.JS v0.11.3 claims to have support for ECMAScript 6 modules with the flag --harmony_modules
.
I have tried various examples, such as the following.
module math {
export var pi = 3.141593;
}
What is the syntax to get modules working in Node.JS?
See Question&Answers more detail:os