@qp-mongosh/browser-runtime-electron
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-dev.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @qp-mongosh/browser-runtime-electron

Weekly Downloads

1

Version

0.0.0-dev.3

License

Apache-2.0

Unpacked Size

27.5 kB

Total Files

22

Last publish

Collaborators

  • noel_kim
  • glenan
  • l34130
  • gsts007
  • tony_jang
  • bear-bear-bear
  • _minimal