X Tutup
The Wayback Machine - https://web.archive.org/web/20200929184708/https://github.com/datkt/napi
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

You can’t perform that action at this time.
X Tutup