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

2.2.6 • 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(
  await CompassServiceProvider.connect(...)
);

function MyShell(props) {
  return <Shell runtime={runtime} />;
}

/@mongosh/browser-runtime-electron/

    Package Sidebar

    Install

    npm i @mongosh/browser-runtime-electron

    Weekly Downloads

    167

    Version

    2.2.6

    License

    Apache-2.0

    Unpacked Size

    28.4 kB

    Total Files

    25

    Last publish

    Collaborators

    • orechova
    • himanshusinghs
    • alexander_schroll
    • c-buckingham
    • lerouxb
    • durran
    • alena.khineika
    • mmarcon
    • mbroadst
    • mcasimir
    • rhysm
    • devtoolsbot
    • addaleax
    • gribnoysup