Need help with ts2dart?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

151 Stars 51 Forks Apache License 2.0 642 Commits 37 Opened issues


ts2dart TypeScript to Dart transpiler

Services available


Need anything else?

Contributors list

TypeScript to Dart transpiler Build Status

ts2dart is a TypeScript to Dart transpiler. It's mainly used to translate Angular 2 from TypeScript to Dart for its Dart user base.


  • To install as Command Line Tool execute:
    npm i -g ts2dart
  • Once installed you could run it doing:
    ts2dart inputFile.ts


  • execute
    npm i
    to install the dependencies,
  • the Dart SDK must be available to run end to end tests.

Gulp tasks

  • gulp watch
    executes the unit tests in watch mode (use
    gulp test.unit
    for a single run),
  • gulp test.e2e
    executes the e2e tests,
  • gulp test.check-format
    checks the source code formatting using
  • gulp test
    runs unit tests, e2e tests and checks the source code formatting.

Phabricator Reviews

You can send pull requests via Github, or by creating a Phabricator diff on Both are fine, though Phabricator has a nicer code review UI.

To create a Phabricator diff:

  • create an account on
  • install Arcanist
  • run
    arc diff
    to upload a diff (= pull request). This will also run all tests.
  • get it reviewed by entering a "Reviewer", e.g. "mprobst", "alexeagle", "viks", ...

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.