I want to redirect the output of node.js to txt file.I am able to get the output in console for node.js.
Please help me in this issue.
This is the snippet:
node.forEach(function(elem)
{
var toString=elem.path.toString;
console.log(toString);
}
Output looks something like this
ui.apps/src/main/content/jcr_root/components/content/smartcart/deviceselector/cq_editConfig.xml
ui.apps/src/main/content/jcr_root/components/content/smartcart/deviceselector/deviceselector.html