how to get path using path and filename in nodejs code example
Example: node.js name of file
var path = require('path');
var scriptName = path.basename(__filename);
var path = require('path');
var scriptName = path.basename(__filename);