@jetbrains/kotlinc-js-api

KotlincJS compiler wrapper for NodeJS

Stats

StarsIssuesVersionUpdatedCreatedSize
@jetbrains/kotlinc-js-api
2,406132.0.12 years ago4 years agoMinified + 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.