@mongosh/browser-runtime-electron
v5.1.1
Published
Mongosh browser runtime electron
Downloads
6,896
Keywords
Readme
browser-runtime-electron
ElectronRuntime
Runtime implementation that uses Node.js vm module as sandbox for
code execution.
import { ElectronRuntime } from 'mongosh-browser-repl';
const runtime = new ElectronRuntime(serviceProvider);Example: usage in Compass
import { Shell, ElectronRuntime } from 'mongosh-browser-repl';
const runtime = new ElectronRuntime(
await CompassServiceProvider.connect(...)
);
function MyShell(props) {
return <Shell runtime={runtime} />;
}