0.0.0-dev.3 • Published 3 years ago

@qp-mongosh/browser-runtime-electron v0.0.0-dev.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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} />;
}