how to import a class in node js code example Example: javascript class in external file class User { //... } module.exports = User