$ cmake -DENABLE_STATIC=ON -DGEN_LANGUAGE_BINDINGS=ON -DGEN_JAVASCRIPT_BINDINGS=ON .. $ make $ make install #necessary for plugin's $ cd swig/javascript $ npm install --unsafe-perm
$ node test.js
Current SWIG version does not support shared pointer. To correct that at the moment you need to do one thing:
You can build the JavaScript bindings inside docker, for that you can use the dockerfile, it is based on the dockerfile.
More details on SWIG's JavaScript bindings can be found at SWIG.
To include the node bindings simply use it with.
var yang = require("./index")