This question has already been answered:
Trying to write a simple script. Described in server.js:
var UserMethods = require('../User'); app.get('/', function (req, res) { var params = UserMethods.userGetParams(req.query.user_id); //Как??? res.render('index', { status: params.status, points: params.points }); }); And I do not understand how trite to get data from this function ?? Return asynchronous function in any way. kolbek ok .. but how to use it from the child module in the parent?