node resolve path from calling library code example Example: How to get the path to the file that required your module? module.parent