@datkt/napi
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "@datkt/napi", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "N-API C Interop for Kotlin/Native", | ||
"main": "napi.klib", | ||
"scripts": { | ||
"build": "npm run klib", | ||
"klib": "cinterop -def napi.def -pkg napi -o napi", | ||
"install": "npm run klib", | ||
"build": "cinterop -def napi.def -pkg napi -o napi", | ||
"postinstall": "npm run build", | ||
"test": ":" | ||
@@ -11,0 +10,0 @@ }, |
@@ -21,3 +21,6 @@ napi | ||
## 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 | ||
$ 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 | ||
@@ -24,0 +27,0 @@ $ node -e "require('./binding')" |
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
118918
7
38