how can I implement something like this in coffee script? when I run node a.js both A and B is type function
a.js
exports = module.exports = A;
var B = require('./b');
function A() {
console.log('I\'m A');
}
console.log('B=', typeof B);
b.js
exports = module.exports = B;
var A = require('./a');
function B() {
console.log('I\'m B');
}
console.log('A=', typeof A);
I tried several approach in the Coffee-Script, but no one approach can do the exactly same like the javascript above.