Dear Beloved User,
I feel compelled to give you a word of warning if you are considering using this module.
This module does not ship a copy of Node's internals. It does its thing by using the exposed source code that lives in Node.js itself. So, running this on different versions of Node.js will produce different results.
When your program is broken by changes to Node's internals, or when Node changes in such a way that this module becomes fundamentally broken, you will likely get little sympathy. Many people in the Node community consider this sort of behavior to be unwise and unseemly, if not outright hostile and morally wrong.
At the very least, you probably just want to run Node with the
--expose-internals flag, rather than go to such
Don't use unless you know what you're doing, or at least, are ok with the risks. Don't say I didn't warn you.
Eternally Yours in OSS,
Isaac Z. Schlueter
var natives =// get the source codevar fsCode = nativessource'fs'// get a evaluated copy of the modulevar fsCopy = natives// note that this is not the same as the "real" fs// but it does have all the same entriesfsCopy // etc
You can't use this to override
require("buffer") because everything
Buffer.isBuffer working properly, so it's important for
that one to be given a pass.