16.15.0 • Published 2 years ago
@kungfu-trader/libnode v16.15.0
Shared lib (so/dylib/dll) for Node.js
This project provides shared lib for Node.js.
Usage
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
Compile and Link
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"
Build with GitHub Actions
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.