The node command line accepts a "--require" (or -r) option which preloads modules. Is there a way to access that in an eval script? I'm trying to do something like this:
node --require mymodule -e 'mymodule.test()'
No comments:
Post a Comment