@datkt/napi

0.2.0 • Public • Published

napi

N-API C Interop for Kotlin/Native

Installation

$ npm install @datkt/napi

Prerequisites

Usage

## Compile a shared library with 'module.kt' and link napi.klib found in `node_modules/`

$ konanc -r node_modules/@datkt -l napi/napi -p shared -o binding module.kt ## Linux
$ konanc -r node_modules/@datkt -l napi/napi -p dynamic -o binding module.kt ## OSX

$ mv libbinding.so binding.node
$ node -e "require('./binding')"

TODO

See Also

License

MIT

Package Sidebar

Install

npm i @datkt/napi

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

119 kB

Total Files

7

Last publish

Collaborators

  • vipyne
  • werle