0.0.0-dev.3 • Published 4 years ago
@qp-mongosh/browser-runtime-electron v0.0.0-dev.3
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(
CompassServiceProvider.fromDataService(dataService)
);
function MyShell(props) {
return <Shell runtime={runtime} />;
}