If you defined a class (that is a Function in JS), just try instanceof
// in your user_controller.js file
Function UserController() {
...
}
UserController.prototype.userList = function() {
...
}
module.exports = UserController
// in another file
var userController = new UserController();
userController instanceof UserController // prints true