programming language, superset of JavaScript that compiles to JavaScript

TypeScript (TS) is a high-level programming language that adds static typing with optional type annotations to JavaScript. It is designed for developing large applications. It transpiles to JavaScript. It is developed by … Wikipedia
Factsheet
Family ECMAScript
Designed by Microsoft,
Anders Hejlsberg,
Luke Hoban
Factsheet
Family ECMAScript
Designed by Microsoft,
Anders Hejlsberg,
Luke Hoban
🌐
npm
npmjs.com › package › tsx
tsx - npm
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files. Latest version: 4.21.0, last published: 16 days ago. Start using tsx in your project by running `npm i tsx`. There are 1899 other projects in the npm registry ...
      » npm install tsx
    
Published   Nov 30, 2025
Version   4.21.0
Author   Hiroki Osame
Homepage   https://tsx.is
🌐
TypeScript Execute
tsx.is › getting-started
Getting started | tsx
To install tsx as a project development dependency, run the following command in your project directory: ... Project commands are usually organized in the package.json#scripts object. In the scripts object, you can reference tsx directly without npx:
🌐
DEV Community
dev.to › _staticvoid › how-to-run-typescript-natively-in-nodejs-with-tsx-3a0c
How to run TypeScript natively in Node.js with TSX - DEV Community
November 28, 2023 - The most interesting part is that TSX was developed to be a complete replacement for Node, so you can actually use TSX as a TypeScript REPL, if you install it globally with npm i -g tsx, just run tsx in your terminal and you can write TSX natively.
🌐
Stack Overflow
stackoverflow.com › questions › 49743671 › installing-an-npm-package-and-using-it-in-tsx-files
reactjs - Installing an npm package and using it in TSX files - Stack Overflow
The error is saying that you're missing the classnames npm modue. react-super-select has it, along with lodash, in its peerDepedencies so it's not installed automatically.
🌐
Loyc
typescript-react-primer.loyc.net › tutorial-3.html
Setting up your TypeScript Project: Summary and Extra Tips · TypeScript+React Primer
(If TypeScript is not yet installed) In a terminal: npm install --save-dev typescript · Decide where to store your source code (e.g. In the project root folder? in an app subfolder? Or perhaps in a src subfolder? It’s up to you, but these instructions assume you will use the app folder.)
🌐
TypeScript Execute
tsx.is
TypeScript Execute (tsx) | tsx
tsx (TypeScript Execute) - The easiest way to run TypeScript in Node.js
🌐
GitHub
github.com › privatenumber › tsx
GitHub - privatenumber/tsx: ⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js - privatenumber/tsx
Starred by 11.7K users
Forked by 205 users
Languages   TypeScript 99.4% | JavaScript 0.6%
Find elsewhere
🌐
npm
npmjs.com › package › typescript
typescript - npm
npm install -D typescript · For our nightly builds: npm install -D typescript@next · There are many ways to contribute to TypeScript. Submit bugs and help us verify fixes as they are checked in.
      » npm install typescript
    
Published   Sep 30, 2025
Version   5.9.3
Author   Microsoft Corp.
🌐
Create React App
create-react-app.dev › docs › adding-typescript
Adding TypeScript | Create React App
npm install --save typescript @types/node @types/react @types/react-dom @types/jest Copy ... Next, rename any file to be a TypeScript file (e.g. src/index.js to src/index.tsx) and create tsconfig.json if it's not in the root of your project ...
🌐
Better Stack
betterstack.com › community › guides › scaling-nodejs › tsx-explained
Getting Started with TSX | Better Stack Community
Now install TSX globally or as a development dependency. The examples in this guide work with TSX version 4.x, which is the current stable release:
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › javascript › compile-typescript-code-npm
Compile and build TypeScript code using npm - Visual Studio (Windows) | Microsoft Learn
To install using the IDE, right-click the npm node in Solution Explorer, choose Install New npm package, search for TypeScript, and install the package.
🌐
Node.js
nodejs.org › en › learn › typescript › run
Node.js — Running TypeScript with a runner
To use tsx, you need to install it first: npm i -D tsx · ShellCopy to clipboard · Then you can run your TypeScript code like this: npx tsx example.ts · ShellCopy to clipboard · If you want to use tsx via node, you can register tsx via --import: ...
🌐
Better Stack
betterstack.com › community › guides › scaling-nodejs › nodejs-typescript
Using TypeScript with Node.js: A Beginner's Guide | Better Stack Community
The tsx package (short for TypeScript ... Go ahead and install it in your project through the command below: Copied! npm install tsx --save-dev ·...
🌐
npm
npmjs.com › ts-node
ts-node - npm
# Locally in your project. npm install -D typescript npm install -D ts-node # Or globally with TypeScript.
      » npm install ts-node
    
Published   Dec 08, 2023
Version   10.9.2
Author   Blake Embrey
🌐
Node.js
nodejs.org › api › typescript.html
Modules: TypeScript | Node.js v25.2.1 Documentation
To use TypeScript with full support ... instructions use tsx as an example but there are many other similar libraries available. Install the package as a development dependency using whatever package manager you're using for your project. For example, with npm:...
🌐
Graphite
graphite.com › guides › npm-typescript
Using npm with TypeScript
To start using TypeScript in your projects, you first need to install it globally or locally using npm.