tree: fafb246f4ed8975423157a1bcf4853f9278b45cc [path history] [tgz]
  1. CMakeLists.txt
  2. README.md
  3. binding.gyp.cmake
  4. libyang_javascript.i
  5. package.json.cmake
swig/javascript/README.md

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