Building native add-ons with IBM SDK for Node.js - z/OS
IBM® SDK for Node.js - z/OS® supports native add-ons, which effectively allow you to load dynamically-linked shared objects written in C/C++ into your Node.js applications. With this ability, you are no longer confined to what you can write with JavaScript and Node.js APIs, but can extend your applications to tap existing native drivers, libraries, and services, etc.
The SDK for Node.js - z/OS includes a 64-bit C/C++ compiler (njsc/njsc++) with C++11 language support to facilitate the
compilation of native add-on modules.
Before you build native add-ons, you must install all the following applications:
- Python 2.7.13 or later
- Make 4.1 or later
- The C/C++ compiler that you downloaded with IBM SDK for Node.js - z/OS
You can build or install native add-on packages with the following
commands:
npm install . # To build in package directory
npm install <package name> # To install the specified package from npmjs