Skip to content

rauschma/nodejs-type-stripping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo: Node.js type stripping

  • Requires Node.js v23.6.0 or later.
  • All the TypeScript code in this repository is run directly by Node.js, via type stripping.
  • Limitation: Type stripping is not supported in packages. Therefore, we can only write apps directly in TypeScript and have to transpile packages.

Using src/playground.ts as a simple TypeScript playground

cd nodejs-type-stripping/
npm install
npm run play
  • Edit src/playground.ts. Whenever you save that file, Node.js runs it again and displays its output.

More information