tree: 3262eaffd9b6e5abc73c0542e1775b42bbb3db37 [path history] [tgz]
  1. js.dart-ast/
  2. js.frontend/
  3. js.inliner/
  4. js.libraries/
  5. js.parser/
  6. js.serializer/
  7. js.tests/
  8. js.translator/
  9. npm.templates/
  10. ReadMe.md
js/ReadMe.md

JavaScript Translation

This module performs the translation of Kotlin source code to JavaScript.

There are various Kotlin APIs to JavaScript environments and libraries in the js.libraries project.

Compiling the standard Kotlin library to JavaScript

Reusing JVM based test cases in JavaScript

Any Kotlin test cases using the org.junit.Test annotation and the kotlin.test package, such as this test case are automatically converted to JavaScript using QUnit.

This allows the test cases to be ran directly in a web page in any web browser.

Using the Kotlin Library in JavaScript

There is a simple sample which shows how to use the Kotlin Standard Library from inside JavaScript in a web page or in a JVM using kool.io's JavaFX browser

Contributing

We love contributions! The JavaScript translation could really use your help! If you fancy contributing: