Is there a converter of Javascript to Dart?

Is there an automatic converter of javascript code to Dart? Or is it too soon?

There’s a recent tool called JSParser and does all its magic using Dart itself, that is the parser is written in Dart.

On a related noted there is Frog (and it comes with the standard SDK) which converts Dart to Javascript, it’s also written in Dart making it a good showcase for the language.

Probably too soon.

I believe Dart came out earlier this week. As some of the others have mentioned, there might never be a converter for JavaScript->Dart. I asked another question if it was/will be possible to call JavaScript code from Dart, there is no official answer on this. Another thing I have heard someone ask for on Google Plus is a CoffeeScript->Dart translator. I don’t know what the feasibility of this is, but would be a nice way to stick with the more traditional environments, until Dart can be adopted.

Angular 2 team is building one.

Why isn’t Angualr 2 just built in Dart?

Answer: the Angular folks want to deliver a great framework for BOTH Javascript and Dart.

Dart generates great Javascript for browsers, but we have work to do to generate reusable Javascript libraries.

The Angular team needs to generate reusable Javascript libraries.

quoted from

Their Javascript (Typescript) to Dart transpiler can be found at

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .
Read More:   Resize jqGrid when browser is resized?

Similar Posts