Skip to content

alex-dixon/vscode-typescript-repl

Repository files navigation

vscode-typescript-repl

image

Visual Studio Marketplace

This is a plugin for VSCode that provides an interactive programming experience for the TypeScript programming language.

Features

Develop faster

Reason locally

Debugging one function shouldn't require running the entire program.

Explore easily

It should not be a chore to do good things. Running code is ultimately how we know it works. The ability to do this easier and faster has compunding effects on software development.

Combine getting it working with it working

An integrated project REPL environment lets you write and evaluate code one moment and ship it the next.

Code in files

Evaluate any code in any file

Interact with your software

Requirements

macOS

Extension Settings

  • typescript-repl.evaluate: Evaluate the current selection.
  • typescript-repl.evaluate-file: Evaluate the current file.

FAQ

Q: How do I run shell commands?

A: Either:

  • Set cwd when running exec* commands:
import {execSync} from "node:child_process"

execSync("ls", {cwd: "/some/path"})
  • Set the root directory for the node process by evaluating process.chdir:
// In any file
process.chdir("/some/path")
process.cwd() // "/some/path"

About

Just evaluate TypeScript in your editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published