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

2.2.6 • Public • Published

browser-runtime-core

Core and support classes and types used by runtimes.

Api

Runtime

Encapsulates the details of evaluation logic exposing an implementation agnostic interface.

All runtimes implement the following interface:

  • evaluate(code: string): Promise<ShellResult>: Evaluates a string of code.

ShellResult

An object holding the result of an evaluation. Has the following properties:

  • type: string: the shell api type if the entry value is a shell api object.
  • value: any: the value that has to be rendered in output.

/@mongosh/browser-runtime-core/

    Package Sidebar

    Install

    npm i @mongosh/browser-runtime-core

    Weekly Downloads

    6,506

    Version

    2.2.6

    License

    Apache-2.0

    Unpacked Size

    37.1 kB

    Total Files

    33

    Last publish

    Collaborators

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