fix: fix JSNIGetPropertyNames return without handling escape. (#18) update npm jsni version to 1.1.1.
fix: fix JSNIGetPropertyNames return without handling escape. (#18)
update npm jsni version to 1.1.1.
jsni is the interface for JavaScript and C/C++, which is vm neutral and keeps abi/api compatible.
So the developers can avoid rewriting their native modules once v8/nan or other vms api changes.
It is acronym for JavaScript Native Interface.
Prerequisites:
We can try jsni beginning with the hello-world example.
First, clone it to your local machine.
git clone https://github.com/alibaba/jsni.git -b example
Second, install jsni using npm:
cd jsni/hello-world/ npm install jsni
Finnally we can build and run it:
node-gyp rebuild node test.js
And it will show “hello”.
The essential JavaScript code is like this:
var jsni = require("jsni"); var addon = nativeLoad("addon"); console.log(addon.hello());
API Reference
BSD-3-Clause
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
jsni
jsni is the interface for JavaScript and C/C++, which is vm neutral and keeps abi/api compatible.
So the developers can avoid rewriting their native modules once v8/nan or other vms api changes.
It is acronym for JavaScript Native Interface.
Usage
Prerequisites:
We can try jsni beginning with the hello-world example.
First, clone it to your local machine.
Second, install jsni using npm:
Finnally we can build and run it:
And it will show “hello”.
The essential JavaScript code is like this:
Documentation
API Reference
Collaborators
License
BSD-3-Clause