node js export class variable code example Example: how to export a class in node js class TestClass { } module.exports.TestClass = TestClass;