how to get the path of a file in nodejs code example
Example 1: node get path of current file
module.filename
Example 2: get value from path variable node js
exports.doIt = function(req, res, next) {
var group = new Group(req.body);
console.log(req.params);
group.userId = req.params.userId;
group.save(new dataCallbacks(req, res, next, "Group").insert());
});