If I have a file running.js
that includes another file dependency.js
, what code in dependency.js
will return the name of the including file running.js
?
If I do path.basename(__filename)
within dependency.js it returns 'dependency.js' not 'running.js'.