Where are nodejs builtin modules cached?
require('http')
console.log(require.cache.http) // undefined
I can't find the http module in require.cache ? How can I detect it was required ?
I found process.moduleLoadList that contains the string NativeModule http but don't see any reference to the cached module where is it ?
from Recent Questions - Stack Overflow https://ift.tt/3FjFQt6
https://ift.tt/eA8V8J
Comments
Post a Comment