The `this.module` trick is still relying on behaviour that is specific to node. Why not go the simple way then?
typeof process !== 'undefined'
&& process.versions
&& process.versions.node