A lightweight CLI wrapper that runs babel-node with --extensions ts,tsx by default, eliminating the need to manually specify TypeScript file extensions. Version 1.0.3 is the latest stable release. This package is no longer actively maintained and is considered deprecated in favor of modern alternatives like ts-node or tsx. It has a single peer dependency on @babel/node ^7.2.2. Key differentiator: simple extension auto-adding with no configuration.
npm install babel-node-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs a TypeScript file using babel-node with .ts and .tsx extensions automatically included.
Replace with ts-node: npx ts-node index.ts or tsx: npx tsx index.ts
Install peer dep: npm install --save-dev @babel/node
Use different tool if custom extensions needed.
npm install --save-dev @babel/node
Use npx babel-node-ts or install globally: npm install -g babel-node-ts