There is a pretty epic thread that I suggest you just read the tail end of <a href="https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node-eps&#x2F;pull&#x2F;3#issuecomment-214761400" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node-eps&#x2F;pull&#x2F;3#issuecomment-21476...</a> . Basically we tried detection via source code as the first proposal; ambiguities at runtime that do not throw errors make it absolutely impossible to do safely, performance problems, and tooling integration problems.