I have a node 'class' defined in a separate file as follows:
function Node_class(){
//code
}
Node_class.prototype = {
function _1 : function(){
//code
}
};
module.exports.Node_class= Node_class;
now when I want to create a new instance of Node_class in a separate file so I did the following:
var node_object = new require('./node_class').Node_class();
node_object.function_1();//is not defined
node_object.function_1() is not defined in the separate file for some reason. Can someone help me export this node 'class' properly?