Usage TOP Developer


The build method for K2HDKC Node.js addon library is explained below.

1. Install prerequisites before compiling

2. K2HDKC library

In advance, you need to install the developer package of K2HDKC library(See here for installation).
Without installing this package, you can also build the K2HDKC library(See here for the build).

3. Clone source codes from Github

$ git clone
$ cd k2hdkc_nodejs

4. Building and Testing

Run the build and test using the npm command.

$ sudo npm cache clean
$ npm update
$ npm run build
$ npm run test

If the building and testing succeed, you can find k2hdkc.node file in the following path. (And a symbolic link build under the top directory.)

$ ls -la build
lrwxrwxrwx 1 guest users     43 Nov 30 14:00 build -> /home/guest/k2hdkc_nodejs/src/build

$ ls -l src/build/Release/*.node
total 996
-rwxr-xr-x 1 guest users 454613 Nov 30 14:00 k2hdkc.node
Usage TOP Developer