Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

@jetbrains/kotlinc-js-api

1.2.12 • 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

638

version

1.2.12

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability