Registry / type-stubs / ts2dart

ts2dart

JSON →
library0.9.11jsnpmunverified

ts2dart is a TypeScript to Dart transpiler, primarily developed to translate Angular 2 from TypeScript to Dart for its Dart user base. Version 0.9.11 is the latest stable release. The project is no longer actively maintained; users are advised to migrate to alternative solutions. Key differentiator: it enables Angular 2 Dart usage by transpiling TS directly to Dart.

npm install ts2dart
INSTALL
IMPORT
SIG · TS2DART
T
ts2dart
type-stubsjavascriptv0.9.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Demonstrates installation and basic CLI usage of ts2dart to transpile a TypeScript file to Dart.

// Install globally: npm i -g ts2dart // Usage: ts2dart inputFile.ts // Note: The package currently does not export any JavaScript API; only a CLI tool. // This example shows CLI usage. // $ ts2dart app.ts
ts2dart --version
Debug
Known issues
deprecatedts2dart is no longer maintained. The Angular team has moved to other tools. Consider using dart2js or other transpilers.
fix
Migrate to currently supported TypeScript-to-Dart solutions or use Angular's Dart source directly.
affects: >=0.9.11
Errors
Common errors & fixes
Error: Cannot find module 'ts2dart'
Package not installed globally or locally.
fix
Run `npm install -g ts2dart` for global CLI access.
bash: ts2dart: command not found
Global installation missing or PATH not set.
fix
Ensure npm global binaries are in PATH: `export PATH=$(npm bin -g):$PATH` or reinstall with `npm i -g ts2dart`.
Upgrade
Version history
0.9.11latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
ts2dart — npm install ts2dart · libregistry