RepleteReplete is an evaluator for JavaScript modules. It enables a highly interactive style of programming called REPL-driven development. Replete can evaluate modules in the browser, Node.js and Deno. The source code for this extension is in the Public Domain. InstallationMake sure you have Deno v1.35.3+ installed (and Node.js v18.6.0+ if you want a Node.js REPL). In VSCode, go to
and search for "Replete". Press "Install". UsageThe following keybindings can be used to control Replete:
Alternatively, search for "Replete" in the command palette to see the available commands. Upon starting Replete, a new Output panel will appear. This is where Replete writes its output. Now you can begin evaluating source code. ConfigurationThe extension can be configured by navigating to
or, if you prefer, choosing "Open User Settings (JSON)" in the command palette. Replete's command line options are documented here. Ensure that the Output panel's "Auto Scrolling" feature is turned on. You may also want to disable VSCode's "Smart Scroll" feature, which can interfere with Replete's output:
Replete can also be configured on a per-project basis. Simply create a replete.json file in the project's root directory and specify a command like so:
In this example, my_replete.js is the project's Replete program. It imports run.js and uses it to configure Replete programmatically. |