i have written a function in file hello.js
dep1=require('dependency');
function hello(Args, callback){
modifiedData= dep1.someFunction(Args);
console.log(modifiedData);
callback(modifiedData);
}
module.exports=hello;
how would i re-use this function in other file?
h=require("./hello");
h.hello("Howdy!", function(err,args){
do something;
}
Any pointers?