Requirements

  • cmake >= 3.1
  • swig
  • node >= 0.10.x <7.0.x
  • npm

Install

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

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

Usage

To include the node bindings simply use it with.

var yang = require("./index")