In node, there is a -r / --require flag. When specified, it requires a module for the script being ran. An example would be node --require bco myScript.js, this would require the bco module and run myScript.js with it required. All it really does is make your scripts look more nice.
What would be nice is if -r / --require would work in interactive mode. Such as node --require bco. Right now this currently doesn't work.
This may be repl's job, but I'm not really sure.
In node, there is a
-r/--requireflag. When specified, it requires a module for the script being ran. An example would benode --require bco myScript.js, this would require thebcomodule and runmyScript.jswith it required. All it really does is make your scripts look more nice.What would be nice is if
-r/--requirewould work in interactive mode. Such asnode --require bco. Right now this currently doesn't work.This may be repl's job, but I'm not really sure.