How do I limit the node repl's access to internal node modules?
问题 In a previous question I figured out how to eliminate unwanted global variables from the repl context. However, I figured out that the repl automatically has access to ALL internal node modules without the use of require . I have no idea how to disable this. I even tried overriding the module variables in the repl itself and it doesn't work. > fs = "test"; > fs It still displays fs original value. This is very unfortunate because I'm trying to expose a public repl but it gives them access to