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

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept