I have a javascript file named Stan_44_API.js and I want to write a function in this file to give me the js file name ( "Stan_44_API" in my case). I will run this code in Node.js by running "node Stan_44_API.js" in command line. How should I write this function to get its filename ( the name of the file which this function code is placed in it) and write it for me?
Many thanks in advance