This project provides shared lib for Node.js.
Install via npm/yarn:
npm install @kungfu-trader/libnode
Be default it downloads prebuilt lib files from a site host by AWS CN. If need to use it overseas, use npm config to set it to AWS US before npm install:
npm config set link_node_binary_host_mirror https://prebuilt.libkungfu.io
Get the path for shared lib for compilers:
node -p "require('@kungfu-trader/libnode').libpath"
Get the headers path:
node -p "require('@kungfu-trader/libnode').include"
If you need other versions of Node.js that we don't provide, you can fork this repo on GitHub and build with GitHub Actions. There is a workflow named "Build" that can be triggered mannually with an input argument, type the git tag of node that you want to use and go. The result will be uploaded to GitHub Actions when successfully finished.