tree: e76f7578318802ecf0780f5a5bde2e8122f7ec84 [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

  • cmake >= 3.1
  • swig
  • node
  • npm

Install

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

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