Interactive REPL

Evaluate JavaScript, TypeScript, Python and WebAssembly interactively and share values between them.

elide repl

elide with no arguments in a terminal also starts it. Languages: JavaScript, TypeScript, Python and WebAssembly.

One REPL session — JavaScript values used from Python

Commands

CommandEffect
/js, /ts, /py, /wasmSwitch language. With an argument, evaluate it once in that language.
/lang NAMESwitch language.
/export NAMEShare a value with the other languages.
/import NAMEBind a shared value in the current language.
/history [N]Show recent entries.
/resetDelete saved history.
/clearClear the screen.
/helpList commands.
/exitLeave the REPL.

Share values

const x = 41
/export x
/py
/import x
print(x + 1)
42

Sharing works without --interop.