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