Registry / devops / babel-node-ts

babel-node-ts

JSON →
library1.0.3jsnpmunverified

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-ts
INSTALL
IMPORT
SIG · BABEL-NODE-TS
B
babel-node-ts
devopsjavascriptv1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

babel-node-ts
npx babel-node-ts script.ts
require('babel-node-ts')
This is a CLI tool, not a library; use npx or global install.
babel-node-ts (CLI)
yarn babel-node-ts script.ts
import babel-node-ts from 'babel-node-ts'
Only CLI usage; no programmatic API.

Runs a TypeScript file using babel-node with .ts and .tsx extensions automatically included.

npx babel-node-ts index.ts
babel-node-ts --version
Debug
Known issues
deprecatedPackage is no longer maintained; consider using ts-node or tsx instead.
fix
Replace with ts-node: npx ts-node index.ts or tsx: npx tsx index.ts
affects: >=0.0.0
gotchaRequires @babel/node as a peer dependency; must be installed separately.
fix
Install peer dep: npm install --save-dev @babel/node
affects: >=1.0.0
gotchaOnly adds --extensions ts,tsx; does not support other extensions like .tsbuildinfo.
fix
Use different tool if custom extensions needed.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module '@babel/node'
Missing peer dependency @babel/node
fix
npm install --save-dev @babel/node
babel-node-ts: command not found
Package not installed globally or not using npx
fix
Use npx babel-node-ts or install globally: npm install -g babel-node-ts
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies
@babel/noderequiredpeer dependency required to run babel-node
Agent activity
7 hits · last 30 days
node
6
Resources
babel-node-ts — npm install babel-node-ts · libregistry