node get path of current file

JavaScript
module.filename
Source

Also in JavaScript: