Skip to content

A tiny script to run JS/TS code in the console.

Notifications You must be signed in to change notification settings

altimho/ts-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TS-sandbox

A tiny script to run JS/TS code in the console.

This script executes the src/index.ts file using tsx and automatically watches for changes.

Quick Start

The simplest way to use the script is by running make. This command will install dependencies and start the script.

Feel free to edit src/index.ts—the script will automatically restart upon detecting any changes.

Commands

  • make install: Installs dependencies and creates the src/index.ts file.
  • make clean: Removes the node_modules directory.
  • make watch (npm run watch): Runs src/index.ts in watch mode.
  • make exec (npm run exec): Executes src/index.ts once.
  • make test (npm run test): Runs TypeScript checks (tsc --noEmit) on the src folder.

You can use make or npm start as shortcuts for npm run watch.

About

A tiny script to run JS/TS code in the console.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published