Modules are mostly the same in Node.js and AMD. A sequence of statements that assign internal values to variables and exported values to an object. This blog post shows several patterns for doing the latter. It also explains how ECMAScript.next handles exports.
-
talldarklefty likes this
-
sourcetocode posted this