Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript program name

var path = require('path');
var programName = path.basename(process.argv[1]);
console.log("Program name = " + programName);

// also
console.log("Program name = " + process.argv[1]);
 
PREVIOUS NEXT
Tagged: #javascript #program
ADD COMMENT
Topic
Name
6+6 =