@jetbrains/kotlinc-js-api

    2.0.1 • Public • Published

    kotlinc-js-api

    This package provides JavaScript APIs for calling the Kotlin to JavaScript compiler.

    Installation

    npm i @jetbrains/kotlinc-js-api --save

    Usage

    const kotlinCompiler = require('@jetbrains/kotlinc-js-api');
     
    kotlinCompiler
      .compile({
        output: './build/dist.js',
        sources: [__dirname + '/src'],
        sourceMaps: true,
        moduleKind: 'commonjs',
        libraries: [
          'path/to/some.meta.js',
        ]
      })
      .then(() => console.log('Compilation successful'));

    Install

    npm i @jetbrains/kotlinc-js-api

    DownloadsWeekly Downloads

    269

    Version

    2.0.1

    License

    Apache-2.0

    Unpacked Size

    5.39 kB

    Total Files

    4

    Last publish

    Collaborators

    • allvo
    • bashor
    • jetbrains-admin
    • jetbrains-buildserver
    • kisenka
    • kotlin
    • maksimr
    • princed