Utility to expose any commonjs module to a repl context