Requirements

  • cmake >= 3.1
  • swig
  • node
  • npm

Install

$ cmake -DJAVASCRIPT_BINDING=ON ..
$ make
$ cd javascript
$ npm install

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")