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

Requirements

  • cmake >= 2.8.12
  • 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")