tree: 6e9f089d2d2e56e9b92b5ae40385e3a962faef7b [path history] [tgz]
  1. CMakeLists.txt
  2. README.md
  3. binding.gyp.cmake
  4. files/
  5. index.js
  6. libyang_javascript.i
  7. package.json.cmake
  8. test.js
swig/javascript/README.md

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