elide replelide with no arguments in a terminal also starts it. Languages: JavaScript, TypeScript, Python and WebAssembly.
Commands
| Command | Effect |
|---|---|
/js, /ts, /py, /wasm | Switch language. With an argument, evaluate it once in that language. |
/lang NAME | Switch language. |
/export NAME | Share a value with the other languages. |
/import NAME | Bind a shared value in the current language. |
/history [N] | Show recent entries. |
/reset | Delete saved history. |
/clear | Clear the screen. |
/help | List commands. |
/exit | Leave the REPL. |
Share values
const x = 41
/export x
/py
/import x
print(x + 1)42Sharing works without --interop.