@jetbrains/kotlinc-js-api

KotlincJS compiler wrapper for NodeJS

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
2,40113May 3, 2021Jun 5, 2017Minified + gzip package size for @jetbrains/kotlinc-js-api in KB

Readme

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'));

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.