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