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