I have code in a database that has different node modules in it. Like this:
exports.hello = hello
Normally, I would just use hello = require './hello.js'
. However, becuase the code is stored in the db, I can't include a path to the file. When I try and do
eval unescape hello_from_db_code
doesn't work.
Is there a way to get the require
functionality without having a path to the file?