[RFR] Add support for node.js export

See code attached.