That certainly could work. I had hoped that node would allow something like:
for(var obj in module)
exports[i] = module[i]
However this works only on variables - functions are nowhere to be
found in the global namespace unfortunately.
Including the hackish node.js support doesn't seem too appropriate at
this moment. I'd rather see us use some kind of modularization
solution that offers export to node, but that's a bit of work.
_______________________________________________
http://openpgpjs.org

