Tools to generate Typescript FFI bindings for C/C++ libraries using libclang and ffi-napi.
libclang
binary.See the following packages for more information:
Contributions are welcome, but guidelines for how to get involved are not in place yet. As a result, please start by opening an issue. Thanks for your interest!
.prettierrc
configuration file to help your editor contribute consistent code. For vscode
, use this extension.npm run bootstrap
to bootstrap the project.npx lerna add <dep> packages/<project> [--dev]
to add a dep (--dev
makes it a dev dep).npm run build
builds all packages.npm run clangffi
runs clangffi (remember to build first).npm run generate-dogfood
re-generates our libclang bindings using libclang-bindings
(ourself).To get started:
# clone and enter the project directory
git clone --config core.autocrlf=false --recursive https://github.com/rainwayapp/node-clangffi.git
cd node-clangffi
# install deps
npm i
# bootstrap and build
npm run bootstrap && npm run build
# bootstrap once last time to ensure typings are present
npm run bootstrap