@mongosh/browser-runtime-electron
v2.2.5
Published
Mongosh browser runtime electron
Downloads
704
Maintainers
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} />;
}