Requirements

  • swig
  • node
  • node-gyp

Install

$ cmake -DJAVASCRIPT_BINDING=ON ..
$ make
$ make npmpkg
$ cd javascript
$ node-gyp configure build

More details on swig's javascript bindings can be found at SWIG.

Usage

To include the node bindings simply use it with.

yang = require("<path to build>/javascript/build/Release/yang")