Skip to content
/ jsni Public
forked from alibaba/jsni

JavaScript Native Interface for JavaScript and C/C++

Notifications You must be signed in to change notification settings

hyj1991/jsni

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsni

jsni is the interface for JavaScript and C/C++, which is vm neutral and keeps abi/api compatible.

It is acronym for JavaScript Native Interface.

Usage

Required

It is required that the node version is v7.0.0 or higher.

First, prepare your addon written by jsni. Here are examples.

Second, install jsni using npm:

npm install jsni --save

Then, require the jsni package and use it like this:

var jsni = require("jsni");
var addon = nativeLoad("addon");
console.log(addon.hello());

License

BSD-3-Clause

About

JavaScript Native Interface for JavaScript and C/C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 47.6%
  • C 30.0%
  • Python 19.8%
  • JavaScript 2.6%