How to find the parent file path of a node module

I’m writing a file watcher, and I want to know what directory I’m making calls to my node module from not /node_modules/watchr/src/watchr.coffee/ so to this: simply use the reserved word module and the path module

require(‘path’).dirname(module.parent.filename)