node.js module or require.js
i wonna programming web app and using express.js as webframework. As
testing framework i will use mocha and chai.
Node.js support modular programming, i can load module with require like
require("mocha"). On frontend i use require.js for organize my codes in
module, but this can be use in node.js to. It it better to use require.js
in node.js or better to use node.js standard module.
I know that require.js support AMD and testing codes with mocha it can
comlicated, because the codes will be load asynchronously.
Node.js require or require.js for module loading?
No comments:
Post a Comment