tree: 30bbc4ce4424c1b13eb9d3ef952b8f35dfcf4cfa [path history] [tgz]
  1. CMakeLists.txt
  2. README.md
  3. binding.gyp.cmake
  4. libyang_javascript.i
  5. package.json.cmake
  6. test/
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")