path.resolve code example
Example 1: event.stoppropagation
event.stopPropagation();
Example 2: node.js name of file
var path = require('path');
var scriptName = path.basename(__filename);
event.stopPropagation();
var path = require('path');
var scriptName = path.basename(__filename);